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
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
andVITE_SUPABASE_ANON_KEY
to build your frontend. To do that, simply create a.env.local
file in thefrontend
directory and add your variables there. Learn more on the Vite docs.
- Run
go run .
in thebackend
folder - Run
yarn dev
in thefrontend
folder