Skip to content

Commit 433e4dc

Browse files
committed
use PRM scopes, still fallback to DCR response scopes
1 parent df56e35 commit 433e4dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ async function authInternal(
447447
clientInformation,
448448
state,
449449
redirectUrl: provider.redirectUrl,
450-
scope: scope || provider.clientMetadata.scope,
450+
scope: scope || resourceMetadata?.scopes_supported?.join(' ') || provider.clientMetadata.scope,
451451
resource
452452
});
453453

0 commit comments

Comments
 (0)