Ready to post? First, try searching for your answer.
This code works:
const options = {
detailedResponse: true
};
return this.auth.getAccessTokenSilently(options);
This code gives me Missing Refresh Token error:
const options = {
detailedResponse: true,
authorizationParams: {scope:‘additional_scope’},
};
return this.auth.getAccessTokenSilently(options);
additional_scope is defined for the API.
Any ideas if it is possible to add additional scopes on the fly? I’m trying to get an access token with very specific scope before calling a resource endpoint. Each endpoint will require its own scope.