I am currently fixing an old project that my club made about a year ago and I saw they used Auth0 for user authentication but also store username and hashed pw in mongodb in a user
document. user
documents also have roles like admin, manager, or customer and uses these roles to restrict certain pages and resources.
My question is, is there a reason why we store hashed pw along with username and roles? I assume the only time we use hashed pw is to verify that the user entered a valid credential. But if we have to authenticate using Auth0, is there any benefit of storing hashed pw in the db?
I would like to learn about general use cases where we would store hashed pw when we use third party authentication service like auth0.
Thank you so much!!