Next.js Discord

Discord Forum

Should I use supabase ssr just for auth?

Answered
Polar bear posted this in #help-forum
Open in Discord
Polar bearOP
I see that supabase/ssr uses cookies so It opts out of caching by default.
Should I use regular @supabase/supabase-js for other requests and supabase/ssr just for auth?

GET https://ghpftjphunzaaxlblpjy.supabase.co/rest/v1/tasks?select=* 200 in 138ms (cache skip)     
 │ │ Cache skipped reason: (auto no cache)
 │ GET https://ghpftjphunzaaxlblpjy.supabase.co/auth/v1/user 200 in 146ms (cache skip)
 │ │ Cache skipped reason: (auto no cache)
Answered by B33fb0n3
Do you requests that you want to make with supabase-js depend on the user? If so, use only one package. If not, you can use both packages
View full answer

2 Replies