Should I use supabase ssr just for auth?
Answered
Polar bear posted this in #help-forum
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?
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
2 Replies
@Polar bear 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)
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
Answer