Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 944 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 944 Bytes

supabase-jwt-auth-demo

DepsHub.com - The easiest way to stay up-to-date with your dependencies.

This demo shows how to use Supabase to authenticate users with JWTs using your own backend.

Read this tutorial to learn how to build this demo: Using Supabase as an Auth Service

Setup

You need 3 environment variables:

  • SUPABASE_JWT_SECRET to run your backend. You can either set it in your .env file or in your terminal before running the backend.
  • VITE_SUPABASE_PROJECT_ID and VITE_SUPABASE_ANON_KEY to build your frontend. To do that, simply create a .env.local file in the frontend directory and add your variables there. Learn more on the Vite docs.

Running

  • Run go run . in the backend folder
  • Run yarn dev in the frontend folder