Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dabit3/supabase-nextjs-auth
Example project implementing authentication, authorization, and routing with Next.js and Supabase
https://github.com/dabit3/supabase-nextjs-auth
Last synced: 3 months ago
JSON representation
Example project implementing authentication, authorization, and routing with Next.js and Supabase
- Host: GitHub
- URL: https://github.com/dabit3/supabase-nextjs-auth
- Owner: dabit3
- Created: 2021-07-12T22:32:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-30T04:15:37.000Z (over 3 years ago)
- Last Synced: 2024-04-20T18:49:21.161Z (7 months ago)
- Language: JavaScript
- Size: 341 KB
- Stars: 151
- Watchers: 3
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-NextJs - supabase-nextjs-auth
README
## Magic Link Authentication and Route Controls with Supabase and Next.js
To run this project, To get started with this project, first create a new project in the [Supabase](https://supabase.io/) dashboard
Once you've created the project in the Supabase dashboard, continue with the next steps.
## Run either locally or deploy to Vercel
### Deploying to Vercel
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fdabit3%2Fsupabase-nextjs-auth&env=NEXT_PUBLIC_SUPABASE_URL,NEXT_PUBLIC_SUPABASE_ANON_KEY&envDescription=API%20URL%20and%20API%20Key)
### Running locally
1. Clone this project
```sh
git clone https://github.com/dabit3/supabase-nextjs-auth
```2. Change into the directory and install the dependencies
```sh
cd supabase-nextjs-authnpm install
```3. Create a file named __.env.local__ and update it with the values from your Supabase project:
```
NEXT_PUBLIC_SUPABASE_URL=https://app-id.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-public-api-key
```![App URLs](appurls.jpeg)
4. Run the server
```sh
npm run dev
```