Skip to content

Commit

Permalink
chore: add missing 'is_anonymous' property to User type (#871)
Browse files Browse the repository at this point in the history
## 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

---------

Co-authored-by: Kang Ming <[email protected]>
  • Loading branch information
dave-irvine and kangmingtay authored Apr 2, 2024
1 parent 92fefbd commit bd91e72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ export interface User {
role?: string
updated_at?: string
identities?: UserIdentity[]
is_anonymous?: boolean
factors?: Factor[]
}

Expand Down

0 comments on commit bd91e72

Please sign in to comment.