Gathering detailed insights and metrics for next-auth0-components
Gathering detailed insights and metrics for next-auth0-components
Gathering detailed insights and metrics for next-auth0-components
Gathering detailed insights and metrics for next-auth0-components
npm install next-auth0-components
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
4 Stars
26 Commits
1 Watchers
2 Branches
1 Contributors
Updated on Oct 22, 2018
Latest Version
0.0.10
Package Id
next-auth0-components@0.0.10
Size
309.63 kB
NPM Version
4.2.0
Node Version
7.8.0
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
2
3
Components for quickly adding Auth0 support to a Next.js app.
Setup a client in Auth0 and allow the https://yourdomain.com/login
and https://yourdomain.com/logout
callback Urls.
Set process.env.AUTH0_ID
and process.env.AUTH0_DOMAIN
to your client
Create a pages/login.js
page and render the <Login auth0Id={process.env.AUTH0_ID} auth0Domain={process.env.AUTH0_DOMAIN} />
component.
Provide an onAuthenticated( authResult, profile, callback )
function to intercept the authentication response and verify email, create a user in your database etc.
onAuthenticated = ( authResult, profile, callback ) => {
if(ok){
// set local storage etc and redirect...
Router.push('/');
} else {
//
if(error){
callback(null, error);
} else {
// initalize create step with a user
callback({name: profile.name});
}
}
}
onCreate = ( user, authResult, callback ){
// create in db or error from profile info
createUserMutation(user).then(()=>{
Router.push('/');
}).catch(error => callback( error );)
}
Use the <Lock />
component on a page to generate an overlay login form...
import Lock from 'next-auth0-components';
<Lock layout={({lock})=>(<button onClick={()=>{lock.show()}}>Overlay Login</button>)} auth0Id={process.env.AUTH0_ID} auth0Domain={process.env.AUTH0_DOMAIN}><a href="/login">Static Login Link</a></Lock>
Custom next.js server routing in app.js
pm2 cluster setup in server.js
module export in index.js
.
node app.js
node server.js
next build
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-14
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