https://github.com/itzg/try-nextjs-cookie-auth-api
Very contrived Next.js application to simulate an authentication flow that uses next-cookies to provide server and client side with auth code
https://github.com/itzg/try-nextjs-cookie-auth-api
Last synced: 9 months ago
JSON representation
Very contrived Next.js application to simulate an authentication flow that uses next-cookies to provide server and client side with auth code
- Host: GitHub
- URL: https://github.com/itzg/try-nextjs-cookie-auth-api
- Owner: itzg
- Created: 2019-09-02T22:40:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-08T06:19:43.000Z (over 2 years ago)
- Last Synced: 2025-01-14T08:52:14.158Z (over 1 year ago)
- Language: JavaScript
- Size: 251 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Very contrived Next.js application to simulate an authentication flow that uses next-cookies to provide server and client side with auth code
## Starting
Start the Next.js app
```bash
npm run dev
```
Start the contrived authentication server:
```bash
npm run dev-auth
```
Open a browser to http://localhost:3000
## Flow
The following diagram shows the contrived replica of an OAuth2 flow simulated by this application and its companion authentication server:
