This is the Firebase Adapter for
next-auth. This package can only be used in conjunction with the primary
next-auth package. It is not a standalone package.
- Add this adapter to your
pages/api/[...nextauth].jsnext-auth configuration object.
When initializing the firestore adapter, you must pass in the firebase config object with the details from your project. More details on how to obtain that config object can be found here.
An example firebase config looks like this:
See firebase.google.com/docs/web/setup for more details.
Caution: We do not recommend manually modifying an app's Firebase config file or object. If you initialize an app with invalid or missing values for any of these required "Firebase options", then your end users may experience serious issues.
For open source projects, we generally do not recommend including the app's Firebase config file or object in source control because, in most cases, your users should create their own Firebase projects and point their apps to their own Firebase resources (via their own Firebase config file or object).