Nextjs Auth0
@auth0/nextjs-auth0
Auth0 Next.js SDK
Authentication
auth0
next.js
react
oidc
authentication
vercel
@auth0/nextjs-auth0
javascript
npm
frontend
Stars
2.3k
Weekly
1.3M
Open issues
10
Bundle
~25 kB
Installation
npm install @auth0/nextjs-auth0Code example
import { signIn } from "@auth0/nextjs-auth0";
export function Example() {
return (
<button type="button" onClick={() => signIn()}>
Continue with Nextjs Auth0
</button>
);
}Pros & cons
Pros
- Actively maintained by Auth0
- 1.3M weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Not supported in React Native
- 10 open issues on GitHub