Skip to content

Commit ff328f1

Browse files
committed
fix: address claude review nits
1 parent 24b700e commit ff328f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client/src/client/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ async function authInternal(
647647
metadata,
648648
resource,
649649
authorizationCode,
650-
scope,
650+
scope: resolvedScope,
651651
fetchFn
652652
});
653653

@@ -1256,7 +1256,7 @@ export async function startAuthorization(
12561256
authorizationUrl.searchParams.set('scope', scope);
12571257
}
12581258

1259-
if (scope?.includes('offline_access')) {
1259+
if (scope?.split(' ').includes('offline_access')) {
12601260
// if the request includes the OIDC-only "offline_access" scope,
12611261
// we need to set the prompt to "consent" to ensure the user is prompted to grant offline access
12621262
// https://openid.net/specs/openid-connect-core-1_0.html#OfflineAccess

0 commit comments

Comments
 (0)