© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
13 replies
Spoonz

How to use getStaticPaths and getStaticProps with new Supabase auth helpers

Can anyone provide an example of how to use NextJS getStaticPaths and getStaticProps with the new
@supabase/auth-helpers-react
@supabase/auth-helpers-react
and
@supabase/auth-helpers-nextjs 
@supabase/auth-helpers-nextjs 
packages. Every time I try and get it to work myself I end up with useContext errors as the useSupabaseClient() hook is being called outside of the main function.
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

Thirdweb Auth combined with Supabase-Auth-Helpers
SupabaseSSupabase / help-and-questions
4y ago
How to use Prisma with Supabase Auth?
SupabaseSSupabase / help-and-questions
4y ago
auth-helpers vs @supabase/ssr
SupabaseSSupabase / help-and-questions
3y ago
Using sveltekit fetch with supabase auth helpers
SupabaseSSupabase / help-and-questions
4y ago