Next.js Discord

Discord Forum

could next-auth use two providers, one which is Auth0 and another which is CredentialProvider

Unanswered
Rhinelander posted this in #help-forum
Open in Discord
RhinelanderOP
could next-auth use two providers, one which is Auth0 and another which is CredentialProvider, and we require the user to authenticate with both providers? From my understanding we would need to set up two providers but that would create two different sessions. thing is, providers don't typically share tokens with each other due to security reasons. Auth0 itself supports multi-factor authentication, and i think it might be better to leverage that functionality rather than trying to use two separate providers in NextAuth.js.

0 Replies