This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
Replies: 3 comments 2 replies
-
Can you share your config/auth.ts? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I run into the same problem, here is the related part from
Any help would be appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
-
One solution is to replace the const authConfig: AuthConfig = {
guard: 'jwt',
guards: {
jwt: {
driver: (Env.get('NODE_ENV') === 'test' ? 'oat' : 'jwt') as 'jwt', You only need to change the Currently, there's an open issue about it: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://docs.adonisjs.com/guides/testing/http-tests
code:
error:
On Adonis they state that: "The @adonisjs/auth package extends the API client and adds the loginAs method you can use to login as a certain user when making the request." - which is really useful when you want to test.
However using this package with Adonis test and using the loginAs method I receive this error: 'Invalid guard driver "jwt" property'
Anyone knows how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions