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

chore: add missing 'is_anonymous' property to User type #871

Merged

Conversation

dave-irvine
Copy link
Contributor

@dave-irvine dave-irvine commented Mar 30, 2024

What kind of change does this PR introduce?

Types update

What is the current behavior?

User type is missing 'is_anonymous' property.

What is the new behavior?

User type has the 'is_anonymous' property.

Additional context

I'm not 100% certain if this property is optional or not, hoping @kangmingtay can offer some insight as they implemented the feature in supabase/auth#68

Fixes #872

Copy link
Member

@kangmingtay kangmingtay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dave-irvine thanks for catching this, it will always be returned but lets make it optional since we need to account for users on an older version of supabase auth that don't support anonymous sign-ins

src/lib/types.ts Outdated Show resolved Hide resolved
@kangmingtay kangmingtay merged commit bd91e72 into supabase:master Apr 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add missing 'is_anonymous' property to the User type
2 participants