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

fix: add providers type to UserAppMetadata interface #1011

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

j4w8n
Copy link
Contributor

@j4w8n j4w8n commented Dec 21, 2024

What kind of change does this PR introduce?

Minor type fix.

What is the current behavior?

If a user has multiple providers associated with them, then Supabase adds a providers string array to their user.app_metadata, but this is missing from the UserAppMetadata type. I just happened to notice this while trying to work around an issue in a demo app, and there was no providers intellisense in my IDE.

image

What is the new behavior?

A providers?: string[] type is added to the interface.

Additional context

An example of multiple providers being associated to a user is if the user signs up with email/password, but then is allowed to add a phone number as well.

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.

1 participant