© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
4 replies
Deleted User

supabase auth with github provider in nextjs api routes

happy thursday!

i should preface this and say im not very experienced with nextjs

im trying to get user information in an api route with nextjs so i can return a list of items with the logged in user's id as an fk, like rendering a specific users posts on a timeline is what its most closely related to.

i am traversing the supabase docs and am closely following along with "Supabase auth with Next JS" and returns null. however if i log out serverClient or serverClient.auth it shows a lot of information so i know a connection is being made though i still feel like im doing something incorrectly. does anyone have any advice on this?

will add code in replies

thanks for looking and if you celebrate thanksgiving, enjoy your holiday.
...if not. its friday eve!
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

Nextjs with google provider (protected routes)
SupabaseSSupabase / help-and-questions
4y ago
Supabase Auth UI provider warning
SupabaseSSupabase / help-and-questions
4y ago
Supabase auth NextJs why action?
SupabaseSSupabase / help-and-questions
14mo ago
Post tweets with the supabase twitter auth provider
SupabaseSSupabase / help-and-questions
3y ago