Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geovanisouza92/next-auth-standalone-auth
https://github.com/geovanisouza92/next-auth-standalone-auth
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/geovanisouza92/next-auth-standalone-auth
- Owner: geovanisouza92
- Created: 2022-01-23T16:14:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-23T16:17:33.000Z (almost 3 years ago)
- Last Synced: 2023-03-22T20:53:35.589Z (almost 2 years ago)
- Language: TypeScript
- Size: 79.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next Auth standalone login example
This repo is a minimal reproduction case for [next-auth issue #1542](https://github.com/nextauthjs/next-auth/issues/1542).
## How to run
- Install dependencies with `npm install`
- Run the app with `npm start`
- Run the cli with `npm run cli login`Your default browser should open the login page. You don't need to provide any credentials, just click "Login with Credentials".
Current behavior: after clicking "Login with Credentials", the app will redirect to the app inital page.
Expected behavior: after clicking "Login with Credentials", the app should redirect to the cli server route (`http://127.0.0.1:`) allowing cli to get the token and close the server.