Skip to content

next-firebase-auth vs NextAuth, what is the difference? #522

Answered by kmjennison
abusada asked this question in Q&A
Discussion options

You must be logged in to vote

NextAuth.js and next-firebase-auth both get the job done but have a few differences.

NextAuth.js:

  • Does not use Firebase's authentication. It uses Google OAuth (or another identity provider) and provides a Firestore adapter to store session info. In other words, users will not appear in the Firebase authentication console; e.g., https://console.firebase.google.com/project/example-project/authentication/users
  • Is undoubtedly more flexible: there are lots of authentication providers and database adapters
  • Requires the developer to set up a session database for email sign-in
  • Does not directly provide access to the user's Firebase ID token in server-side rendering
  • Supports multiple identity pro…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@elbro
Comment options

@kmjennison
Comment options

@supto09
Comment options

@marceloverdijk
Comment options

@kmjennison
Comment options

Answer selected by kmjennison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants