https://github.com/geovanisouza92/next-auth-standalone-auth
https://github.com/geovanisouza92/next-auth-standalone-auth
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/geovanisouza92/next-auth-standalone-auth
- Owner: geovanisouza92
- Created: 2022-01-23T16:14:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-23T16:17:33.000Z (over 3 years ago)
- Last Synced: 2025-02-05T03:58:33.320Z (5 months ago)
- Language: TypeScript
- Size: 79.1 KB
- Stars: 1
- Watchers: 2
- 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.