Installation
Requirements
- Next.js >= 16.0.0
- React >= 19.0.0
- Node.js >= 18
Install the package
npm install @authgear/nextjsAuthgear portal setup
Before writing any code, register your redirect URIs in the Authgear Portal :
- Open your project → Applications → select your OAuth client
- Under Redirect URIs, add:
http://localhost:3000/api/auth/callback - Under Post Logout Redirect URIs, add:
http://localhost:3000 - Click Save
Last updated on