Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the correct way to check that a user is currently authenticated? #55

Open
phil-hudson opened this issue Jan 21, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@phil-hudson
Copy link

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.

@phil-hudson phil-hudson added the documentation Improvements or additions to documentation label Jan 21, 2023
@shafnaz
Copy link

shafnaz commented Oct 1, 2023

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants