https://github.com/maxi-schaefer/nextauth-example
This is a simple example on how to use custom credentials on next-auth. I coded a custom login and registration form with the shadcn ui
https://github.com/maxi-schaefer/nextauth-example
Last synced: 12 months ago
JSON representation
This is a simple example on how to use custom credentials on next-auth. I coded a custom login and registration form with the shadcn ui
- Host: GitHub
- URL: https://github.com/maxi-schaefer/nextauth-example
- Owner: maxi-schaefer
- License: mit
- Created: 2024-01-18T18:18:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-18T18:42:35.000Z (over 2 years ago)
- Last Synced: 2025-06-16T01:40:30.414Z (about 1 year ago)
- Language: TypeScript
- Size: 142 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NextAuth-Example
This is a simple example on how to use custom credentials on next-auth. I coded a custom login and registration form with the shadcn ui
### What to do?
1. Start with cloning this repository
```bash
git clone https://github.com/maxi-schaefer/NextAuth-Example
```
2. Install the needed dependencies
```bash
npm install
```
3. Change your **DATABASE_URL** and **NEXTAUTH_SECRET** in [.env](./.env)
```python
DATABASE_URL="POSTGRESQL_LINK"
# Next Auth variables
NEXTAUTH_SECRET = "SOME_RANDOM_STRING"
```
4. Start your development server
```bash
npm run dev
```
### Register

### Login
