Authentication
Last updated
Last updated
Follow to set up supabase in your project
Set requireAuth
to true
in config.js
. This will force the user to login before accessing the app
Open AuthProvider.ts
Re-implement the useEffect
using onAuthStateChange
, and set userID
and isAuthInitialized
Re-implement the functions handleSignUp
, handlesignIn
, handlesignOut
, and handlesignInGuest
in AuthProvider.tsx