auth-js icon indicating copy to clipboard operation
auth-js copied to clipboard

fix: add `providers` type to UserAppMetadata interface

Open j4crev opened this issue 1 year ago • 0 comments

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.

j4crev avatar Dec 21 '24 13:12 j4crev