Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-08T06:19:43.000Z (about 1 year ago)
- Last Synced: 2024-05-01T21:50:56.503Z (7 months 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:
![](docs/login_flow.png)