https://github.com/zbdpay/next-auth-zbd-starter
ZBD Starter for NextAuth.js
https://github.com/zbdpay/next-auth-zbd-starter
auth oauth2 zbd
Last synced: 4 months ago
JSON representation
ZBD Starter for NextAuth.js
- Host: GitHub
- URL: https://github.com/zbdpay/next-auth-zbd-starter
- Owner: zbdpay
- License: mit
- Created: 2023-09-28T00:32:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-03T05:14:45.000Z (about 2 years ago)
- Last Synced: 2025-07-19T16:41:39.779Z (about 1 year ago)
- Topics: auth, oauth2, zbd
- Language: TypeScript
- Homepage: https://nextauth.zbd.dev
- Size: 1.31 MB
- Stars: 8
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ZBD + NextAuth.js

This is a repo containing the code for the ZBD + NextAuth.js integration for ZBD OAuth2 flows.
## Full Guide
To read full guide and more information about ZBD OAuth2 APIs, check the [zbd.dev documentation here](https://zbd.dev/docs/zbd-login/integrations/next).
## Installation
```bash
yarn
```
## Environment Variables
Create a ``.env.local`` just like `.env.local.example` and load up your own values.
```
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="ed2e6f6ea6da94bf0276a7130d98e7ed"
AUTH_ZBD_ID="fcf166b9-aea0-28bb-8f63-844df37ad087"
AUTH_ZBD_SECRET="e3435ve6-6855-4a11-9ff1-7c9dc01d6c17"
AUTH_ZBD_LIVE_KEY="43ZCQ4XBF15UJWC40lljrwan7AJ333BA"
```
## Running the app
```bash
yarn dev
```