supabase-community / godot-engine.supabase

A lightweight addon which integrates Supabase APIs for Godot Engine out of the box.
MIT License
159 stars 17 forks source link

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

Open phil-hudson opened 1 year ago

phil-hudson commented 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.

Use case: E.g. toggling a login or logout button depending on auth state.

What is the recommendation here please?

Thanks.

shafnaz commented 9 months ago

Any update on this?