Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 1.05 KB

File metadata and controls

15 lines (8 loc) · 1.05 KB

Implement Third Party Authentication with GitHub in Next.js Using Supabase

📹 Video

Supabase offers a number of authentication options out of the box. In this video, we look at implementing third party auth using GitHub as a provider.

In order to do this, we need to register a new OAuth application in GitHub, and configure it to communicate with our Supabase project. Supabase automatically handles receiving tokens at the /auth/v1/callback endpoint.

Additionally, we implement /login and /logout pages to handle authentication in our Next.js application. We can use the supabase-js library to detect whether or not a user is signed in using the supabase.auth.user() function.

👉 Next lesson


Enjoyed the course? Follow me on Twitter and subscribe to my YouTube channel.