Skip to content

yabenz/next-supabase-auth-cookie-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js Supabase Authentication and Profile Cookie

This repository provides a step-by-step guide on how to set up authentication using Supabase in a Next.js App Router environment. After authenticating, the user's profile data is fetched from the profiles table in Supabase and stored in an HTTP-only cookie. This enables secure handling of session data on the server and client.

Features

  • Supabase authentication using email and password
  • Fetching user profile from Supabase's profiles table
  • Storing profile data in a secure HTTP-only cookie
  • Accessible user profile data on a protected dashboard route

Prerequisites

Before getting started, ensure you have the following tools installed:


Project Setup

1. Clone the Repository

Setup

  1. Clone the repository:
    git clone https://github.com/yabenz/next-supabase-auth-cookie

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published