Gathering detailed insights and metrics for next-auth-examples
Gathering detailed insights and metrics for next-auth-examples
Gathering detailed insights and metrics for next-auth-examples
Gathering detailed insights and metrics for next-auth-examples
npm install next-auth-examples
Typescript
Module System
Node Version
NPM Version
next-auth@5.0.0-beta.29
Updated on Jun 28, 2025
@auth/azure-tables-adapter@1.10.0
Updated on Jun 22, 2025
@auth/d1-adapter@1.10.0
Updated on Jun 22, 2025
@auth/dgraph-adapter@2.10.0
Updated on Jun 22, 2025
@auth/drizzle-adapter@1.10.0
Updated on Jun 22, 2025
@auth/dynamodb-adapter@2.10.0
Updated on Jun 22, 2025
TypeScript (93.46%)
JavaScript (2.65%)
CSS (1.34%)
Shell (0.99%)
Svelte (0.92%)
PLpgSQL (0.25%)
Pug (0.24%)
Dockerfile (0.11%)
HTML (0.04%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
ISC License
27,151 Stars
3,914 Commits
3,889 Forks
109 Watchers
79 Branches
902 Contributors
Updated on Jul 16, 2025
Latest Version
1.12.1
Package Id
next-auth-examples@1.12.1
Unpacked Size
7.23 MB
Size
1.46 MB
File Count
49
NPM Version
6.4.1
Node Version
8.11.3
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
This is an example of how to use the NextAuth module.
This project as is run the same way as any Next.js project.
To run it locally, just use:
npm run dev
To run it it production mode, use:
npm build
npm start
NextAuth is included in this project here:
This example includes the following pages:
The file pages/auth/credentials.js
provides an additional example of how to use a custom authentication handler defined in next-auth.functions.js
.
It also includes the following configuration files:
An example .env file is provided in .env.example which you can copy over to use for simple configuration:
SERVER_URL=http://localhost:3000
MONGO_URI=mongodb://localhost:27017/my-database
FACEBOOK_ID=
FACEBOOK_SECRET=
GOOGLE_ID=
GOOGLE_SECRET=
TWITTER_KEY=
TWITTER_SECRET=
EMAIL_FROM=username@gmail.com
EMAIL_SERVER=smtp.gmail.com
EMAIL_PORT=465
EMAIL_USERNAME=username@gmail.com
EMAIL_PASSWORD=
If you don't specify a MONGO_URI it will use an in-memory data store for user and session data.
If you don't specify oAuth or SMTP email details you will not be able to log in.
For a more complete example with live demo see nextjs-starter.now.sh.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 20/30 approved changesets -- score normalized to 6
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
79 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