Preclinify / Tickets

2 stars 0 forks source link

[FEAT] Migration from Supabase Auth helpers to supabase/ssr #22

Closed Joecey closed 6 months ago

Joecey commented 6 months ago

User Story

As a user, I would love if the developers used the new @supabase/ssr package rather than the auth-helpers

Additional context

With the launch of Supabase GA, auth-helpers has fully gone into maintenance mode and it's highly recommended to update from auth-helpers to @supabase/ssr package. A full migration guide is seen below along with the various methods of creating clients. @Joecey will take a handle on this once we pass June 1st beta-test period

Additionally, with this update it is important to ensure that RLS policies are updated as anon-key and supabase_url are exposed to browser via NEXT_PUBLIC when used client side. Would be good to see if all supabase functions can be stored as server components and server actions