Open phil-hudson opened 1 year ago
What is the correct way to check that a user is currently authenticated?
Currently I am using Supabase.auth.client == null: as I couldn't find a better method in the current API.
Supabase.auth.client == null:
Use case: E.g. toggling a login or logout button depending on auth state.
What is the recommendation here please?
Thanks.
Any update on this?
What is the correct way to check that a user is currently authenticated?
Currently I am using
Supabase.auth.client == null:
as I couldn't find a better method in the current API.Use case: E.g. toggling a login or logout button depending on auth state.
What is the recommendation here please?
Thanks.