Authentication AdonisJs5 #1393
Answered
by
RomainLanz
Mykhalchuk19
asked this question in
Help
-
I installed @adonisjs/auth package and ran ace command. Then I tried to run migration but I got an error "Exception: Invalid "auth" config. Missing value for "guard". Make sure to set it inside "config/auth". I use mysql database and I want to use Jwt guard. I tried to set value for "guard", but it didn't help me. Maybe I can't understand anything? |
Beta Was this translation helpful? Give feedback.
Answered by
RomainLanz
Aug 4, 2020
Replies: 1 comment
-
Hey @Mykhalchuk19! 👋 There's no JWT Guard in AdonisJS 5. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mykhalchuk19
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Mykhalchuk19! 👋
There's no JWT Guard in AdonisJS 5.
Also, ensure to correctly select the guard with space when running the
node ace invoke
command.