mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-04-18 01:17:01 +02:00
Return access_token with profile
This commit is contained in:
parent
ec0ad24b39
commit
6c2ededcdb
@ -87,6 +87,7 @@ export class OAuth2Provider<
|
|||||||
const res = await fetch(this.config.profileUrl!, {
|
const res = await fetch(this.config.profileUrl!, {
|
||||||
headers: { Authorization: `${ucFirst(tokens.token_type)} ${tokens.access_token}` },
|
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 };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user