diff --git a/src/providers/oauth2.ts b/src/providers/oauth2.ts index 391fb63..80bc6ae 100644 --- a/src/providers/oauth2.ts +++ b/src/providers/oauth2.ts @@ -87,6 +87,7 @@ export class OAuth2Provider< const res = await fetch(this.config.profileUrl!, { headers: { Authorization: `${ucFirst(tokens.token_type)} ${tokens.access_token}` }, }); - return await res.json(); + const profile = await res.json(); + return { ...profile, access_token: tokens.access_token }; } }