await supabase.auth.signInWithOAuth({ provider, options: { redirectTo: `http://example.com/auth/callback`, },}) At the callback endpoint, handle the code exchange to save the user session. Next.jsSvelteKitAstro
await..({,:{:`http://example.com/auth/callback`,},}) At the callback endpoint, handle the code exchange to save the user session. Next.jsSvelteKitAstroRemixExpress Create a new file atapp/auth/callback/route.tsand populate with the following: ...
The "Valid Redirect URIs" should be set to:https://<project-ref>.supabase.co/auth/v1/callback. Obtain the client secret# This will serve as theclient_secretwhen you make API calls to authenticate the user. Under the "Credentials" tab, theSecretvalue will be used as theclient secret. ...
await supabase.auth.signInWithOAuth({ provider, options: { redirectTo: `http://example.com/auth/callback`, },})At the callback endpoint, handle the code exchange to save the user session.Next.jsSvelteKitAstroRemixExpress Create a new file at app/auth/callback/route.ts and populate with ...
from the Server-Side Auth instructionsimport{createClient}from'@/utils/supabase/server'exportasyncfunctionGET(request:Request){const{searchParams,origin}=newURL(request.url)constcode=searchParams.get('code')// if "next" is in param, use it as the redirect URLconstnext=searchParams.get('next')...