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
The custom provider I'm working with returns it's user profile as a user object inside the response below. After some debugging it seems that in /lib/oauth/callback.ts#L131 that this data is overwritten without checking it already exists (in my case it does).
What's the best method for retrieving this profile data before it's overwritten? I'd like to avoid a second api request in the Provider profile() method as the data already exists.
Thanks.
JSON from the custom provider (api docs)
This data this returned from profile = await client.userinfo(tokens, { params: provider.userinfo?.params }) at /lib/oauth/callback.ts#L123
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The custom provider I'm working with returns it's user profile as a user object inside the response below. After some debugging it seems that in /lib/oauth/callback.ts#L131 that this data is overwritten without checking it already exists (in my case it does).
What's the best method for retrieving this profile data before it's overwritten? I'd like to avoid a second api request in the Provider profile() method as the data already exists.
Thanks.
JSON from the custom provider (api docs)
This data this returned from
profile = await client.userinfo(tokens, { params: provider.userinfo?.params })
at /lib/oauth/callback.ts#L123Beta Was this translation helpful? Give feedback.
All reactions