ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข4y agoโ€ข
2 replies
HAILyWilliams

supabase.auth.api.setAuthCookie does not exist on the rc2?

using this to set the server cookie. don't see anything in the docs
TypeError: Cannot read properties of undefined (reading 'setAuthCookie')
  3 | export default function handler(req, res) {
  4 |   console.log(supabase.auth.api);
> 5 |   supabase.auth.api.setAuthCookie(req, res);
    |  ^
  6 | }
TypeError: Cannot read properties of undefined (reading 'setAuthCookie')
  3 | export default function handler(req, res) {
  4 |   console.log(supabase.auth.api);
> 5 |   supabase.auth.api.setAuthCookie(req, res);
    |  ^
  6 | }
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

Cannot use 'supabase.auth.api.setAuthCookie'
SupabaseSSupabase / help-and-questions
4y ago
Property .on does not exist on supabase?
SupabaseSSupabase / help-and-questions
4y ago
Keep getting `Auth event missing` when trying `supabase.auth.api.setAuthCookie(req, res)`
SupabaseSSupabase / help-and-questions
4y ago
function auth.uid() does not exist
SupabaseSSupabase / help-and-questions
3mo ago