buildScope

Deprecated

Extract supported credential format, take scope from there

Replace with

selectSupportedCredentialFormat(requestOptions, metadata)?.scope

Build scope value for use in OAuth2Client.createAuthRequest and OAuth2Client.createTokenRequestParameters.