改用Microsoft Graph User.Read scope(不依赖Xbox Live API权限)

This commit is contained in:
ypsdf1
2026-07-17 11:41:00 +08:00
parent e30c37ef64
commit d539cc10bf
+3 -1
View File
@@ -160,7 +160,9 @@ function msGet($url, $headers = []) {
function getAuthUrl($sessionId) {
$clientId = MS_CLIENT_ID;
$redirectUri = MS_REDIRECT_URI;
$scope = 'XboxLive.signin';
// ★ 使用Microsoft Graph的User.Read scope(不依赖Xbox Live API权限)
// Xbox Live token交换会在后端用此token完成
$scope = 'User.Read offline_access';
$params = http_build_query([
'client_id' => $clientId,