Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mryechkin/nextjs-supabase-auth
Sample project for setting up Supabase Auth in Next.js
https://github.com/mryechkin/nextjs-supabase-auth
auth next pkce pkce-authentication pkce-flow supabase supabase-auth supabase-js
Last synced: 8 days ago
JSON representation
Sample project for setting up Supabase Auth in Next.js
- Host: GitHub
- URL: https://github.com/mryechkin/nextjs-supabase-auth
- Owner: mryechkin
- License: mit
- Created: 2021-11-23T14:41:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T12:34:58.000Z (3 months ago)
- Last Synced: 2024-11-05T06:24:23.203Z (10 days ago)
- Topics: auth, next, pkce, pkce-authentication, pkce-flow, supabase, supabase-auth, supabase-js
- Language: JavaScript
- Homepage: https://misha.wtf/blog/supabase-auth-next-13-pkce
- Size: 349 KB
- Stars: 278
- Watchers: 10
- Forks: 64
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Next.js + Supabase Auth
## Overview
Sample project showing how to add authentication to [Next.js](https://nextjs.org/) 13+ using [Supabase](https://www.supabase.io/) [Auth](https://supabase.com/docs/guides/auth) and the [App Router](https://nextjs.org/docs/app) with React Server Components.
This project is a supplement to [this guide](https://misha.wtf/blog/supabase-auth-next-13-pkce). See the link for a detailed tutorial.
> **Note**
> The `main` branch is using the latest version of [Auth Helpers](https://supabase.com/docs/guides/auth/auth-helpers/nextjs) with the [Proof Key for Code Exchange](https://supabase.com/blog/supabase-auth-sso-pkce#introducing-pkce) (PKCE) flow. If you are looking for the older version (using Auth Helpers `0.6.1` or earlier) see the [`v2`](https://github.com/mryechkin/nextjs-supabase-auth/tree/v2) branch.## Disclaimer
This repo is meant to be an **example** only. Please feel free to fork it and make it your own.
## Author
[Mykhaylo Ryechkin](https://github.com/mryechkin)
## License
[MIT](https://choosealicense.com/licenses/mit/)