© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
2 replies
adboio

Confused about expected auth flow in nextjs supabase template

Hey all - I just created a new Supabase project recently with the latest version of the supabase/nextjs template.

I'm a little confused on the setup here. I think older versions of this template used to include an auth callback API route, but this version does not. After running the sign-up flow, i am redirected to the expected page based on
emailRedirectTo
emailRedirectTo
, plus the
code
code
query parameter

at this point am i expected to implement my own server-side endpoint to do a code exhange? if so, why does the template default to a redirect to
/protected
/protected
(ref1, ref2), which has no code exchange logic?

i could just be missing something - but would like some help haha, thanks!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Confused about supabase pricing
SupabaseSSupabase / help-and-questions
2y ago
Question about handling OTP recovery errors (Supabase / auth flow)
SupabaseSSupabase / help-and-questions
2mo ago
Supabase auth NextJs why action?
SupabaseSSupabase / help-and-questions
14mo ago
NextJS auth helpers - invalid flow state
SupabaseSSupabase / help-and-questions
3y ago