Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denieler/nextjs-auth-template
https://github.com/denieler/nextjs-auth-template
Last synced: about 11 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/denieler/nextjs-auth-template
- Owner: denieler
- License: apache-2.0
- Created: 2024-02-18T11:13:31.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T20:03:04.000Z (4 months ago)
- Last Synced: 2024-08-04T20:53:14.677Z (4 months ago)
- Language: JavaScript
- Size: 150 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Next.JS Template with Authentication and Supabase DB
## How to start
1. Clone the repository
2. Copy `.env.example` to `.env.local`
3. Specify app name in `NEXT_PUBLIC_APP_NAME` variable in `.env.local`
4. Go to [auth0.com](https://auth0.com) and create a new application, fill up `AUTH0_*` variables
5. In [auth0.com](https://auth0.com) configure `Allowed Callback URLs` and `Allowed Logout URLs` to `http://localhost:3000` (or your domain)
6. Generate random `AUTH_SECRET` via command `npx auth secret` and fill up env variable in `.env.local`, more info [here](https://authjs.dev/reference/core/errors#missingsecret)
7. Go to [supabase.com](https://supabase.com/) and create a new project, fill up `*_SUPABASE_*` env variables in `.env.local`### Helpful links
* [https://supabase.com/partners/integrations/auth0](https://supabase.com/partners/integrations/auth0)