Gathering detailed insights and metrics for next-fb-patch
Gathering detailed insights and metrics for next-fb-patch
Gathering detailed insights and metrics for next-fb-patch
Gathering detailed insights and metrics for next-fb-patch
next-auth adapters that are maintained by the community to support any database.
npm install next-fb-patch
Typescript
Module System
Node Version
NPM Version
@next-auth/dynamodb-adapter@1.1.0
Updated on Feb 02, 2022
@next-auth/sequelize-adapter@1.0.2
Updated on Jan 23, 2022
@next-auth/upstash-redis-adapter@1.1.0
Updated on Jan 17, 2022
@next-auth/dynamodb-adapter@1.0.2
Updated on Jan 10, 2022
@next-auth/fauna-adapter@1.0.2
Updated on Jan 10, 2022
@next-auth/neo4j-adapter@1.0.2
Updated on Dec 23, 2021
TypeScript (93.41%)
Shell (4.06%)
JavaScript (2.53%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
ISC License
159 Stars
351 Commits
89 Forks
10 Watchers
29 Branches
31 Contributors
Updated on Jul 06, 2025
Latest Version
0.0.1
Package Id
next-fb-patch@0.0.1
Unpacked Size
12.24 kB
Size
3.68 kB
File Count
4
NPM Version
8.5.5
Node Version
16.14.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
Open Source. Full Stack. Own Your Data.
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.
You can find more Firebase information in the docs at next-auth.js.org/adapters/firebase.
note that this version isn't official. i just ran into a toDate() error thingy, and this is the super small patch for it.
all i did was add a question mark...
next-auth
and @next-auth/firebase-adapter
.1npm install next-auth @next-auth/firebase-adapter
pages/api/[...nextauth].js
next-auth configuration object.1import NextAuth from "next-auth"
2import Providers from "next-auth/providers"
3import { FirebaseAdapter } from "@next-auth/firebase-adapter"
4
5import firebase from "firebase/app"
6import "firebase/firestore"
7
8const firestore = (
9 firebase.apps[0] ?? firebase.initializeApp(/* your config */)
10).firestore()
11
12// For more information on each option (and a full list of options) go to
13// https://next-auth.js.org/configuration/options
14export default NextAuth({
15 // https://next-auth.js.org/configuration/providers
16 providers: [
17 Providers.Google({
18 clientId: process.env.GOOGLE_ID,
19 clientSecret: process.env.GOOGLE_SECRET,
20 }),
21 ],
22 adapter: FirebaseAdapter(firestore),
23 ...
24})
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:
1const firebaseConfig = { 2 apiKey: "AIzaSyDOCAbC123dEf456GhI789jKl01-MnO", 3 authDomain: "myapp-project-123.firebaseapp.com", 4 databaseURL: "https://myapp-project-123.firebaseio.com", 5 projectId: "myapp-project-123", 6 storageBucket: "myapp-project-123.appspot.com", 7 messagingSenderId: "65211879809", 8 appId: "1:65211879909:web:3ae38ef1cdcb2e01fe5f0c", 9 measurementId: "G-8GSGZQ44ST", 10}
See firebase.google.com/docs/web/setup for more details.
From Firebase - 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).
We're open to all community contributions! If you'd like to contribute in any way, please read our Contributing Guide.
ISC
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 11/24 approved changesets -- score normalized to 4
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is archived
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
115 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More