FeatureFuel
1

useUser in auth-helper need to update `is_anonymous` key doesn't exist.

Source: supabase/supabase#22559 · opened by @ngamsomset
Recently, signInAnonymously function have been added. There are a few issue at the moment.

1. there is no documentation of how to enable signInanonymously locally. I need to push all functions to test in staging site. (not the end of the world but better to be able to test locally).
2. I'm finding a way to check if user is anonymous by using useUser from auth-helper-react in my case. The user object that return from this function call got is_anonymous key. But I can't access is_anonymous in the code base. screen shot as follows.

Hope this is helpful.

ps. user?.user_metadata.is_anonymous doesn't work return undefined.
ps2. current work around. check for anonymous user by check user?.email === ""

![CleanShot 2024-04-08 at 14 35 16@2x](
![CleanShot 2024-04-08 at 14 36 00@2x](
![CleanShot 2024-04-08 at 14 36 32@2x](

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests