mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
fixing MS oauth error
This commit is contained in:
parent
e1267890e5
commit
0f9c33ab71
@ -26,11 +26,8 @@ export class MicrosoftProvider extends OAuthBaseProvider {
|
||||
}
|
||||
|
||||
async postProcessUserInfo(tokenSet: TokenSet): Promise<OauthUserInfo> {
|
||||
const url = new URL('https://graph.microsoft.com/v1.0/me');
|
||||
url.searchParams.append('$select', 'id,displayName,mail,identities');
|
||||
|
||||
const rawUserInfo = await fetch(
|
||||
url.toString(),
|
||||
'https://graph.microsoft.com/v1.0/me',
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bearer ${tokenSet.access_token}`,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user