You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In v4, if I use GoogleProvider, I have to cast it to OAuthConfig<Profile> , otherwise I get the following typing error:
Type 'OAuthConfig<GoogleProfile>' is not assignable to type 'Provider'.
Type 'OAuthConfig<GoogleProfile>' is not assignable to type 'OAuthConfig<Profile>'.
Property 'picture' is missing in type 'Profile' but required in type 'GoogleProfile'.ts(2322)
google.d.ts(5, 5): 'picture' is declared here.
(alias) GoogleProvider<GoogleProfile>(options: OAuthUserConfig<Profile>): OAuthConfig<GoogleProfile>
import GoogleProvider
Right! I forgot about that. I haven't quite finished it at the time. But here is a fix: #2682
Basically the profile callbacks first argument will be different for any providers, depending on the scopes set by the user, so we want to keep it overrideable.
Description 🐜
In v4, if I use GoogleProvider, I have to cast it to
OAuthConfig<Profile>
, otherwise I get the following typing error:See this commit which works around the problem on our repo
labelflow/labelflow@f794e5e
Is this a bug in your own project?
No
How to reproduce ☕️
Use v4 beta 1
Use GoogleProvider with typescript.
Example: Use this commit labelflow/labelflow@f794e5e
Screenshots / Logs 📽
Environment 🖥
Contributing 🙌🏽
Yes, I am willing to help solve this bug in a PR
The text was updated successfully, but these errors were encountered: