We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24b700e commit ff328f1Copy full SHA for ff328f1
packages/client/src/client/auth.ts
@@ -647,7 +647,7 @@ async function authInternal(
647
metadata,
648
resource,
649
authorizationCode,
650
- scope,
+ scope: resolvedScope,
651
fetchFn
652
});
653
@@ -1256,7 +1256,7 @@ export async function startAuthorization(
1256
authorizationUrl.searchParams.set('scope', scope);
1257
}
1258
1259
- if (scope?.includes('offline_access')) {
+ if (scope?.split(' ').includes('offline_access')) {
1260
// if the request includes the OIDC-only "offline_access" scope,
1261
// we need to set the prompt to "consent" to ensure the user is prompted to grant offline access
1262
// https://openid.net/specs/openid-connect-core-1_0.html#OfflineAccess
0 commit comments