[V6] AuthFinder/withAuthFinder always returns Invalid user credentials #4440
-
I am using Access tokens Guard for auth, when trying to verify user using AuthFinder with correct credential it always returns Invalid user credentials. Please find the UserModel
|
Beta Was this translation helpful? Give feedback.
Answered by
RomainLanz
Mar 4, 2024
Replies: 1 comment
-
Hey @raubinsharya! 👋🏻 You are hashing the password twice. You don't have to use the 📚 https://docs.adonisjs.com/guides/verifying_user_credentials#hashing-user-password |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
raubinsharya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @raubinsharya! 👋🏻
You are hashing the password twice. You don't have to use the
@beforeSave()
hook since theAuthFinder
already hash the password for you.📚 https://docs.adonisjs.com/guides/verifying_user_credentials#hashing-user-password