这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@phil-hudson

Description

@phil-hudson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions