# Missing Refresh Token Error When Using getAccessTokenSilently With Params

**URL:** <https://community.auth0.com/t/missing-refresh-token-error-when-using-getaccesstokensilently-with-params/148654>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-angular\
**Created:** [October 4, 2024, 6:41pm UTC](https://community.auth0.com/t/missing-refresh-token-error-when-using-getaccesstokensilently-with-params/148654 "2024-10-04T18:41:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jquerijero](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jquerijero/32/59729_2.png) [@jquerijero](https://community.auth0.com/u/jquerijero)\
**Post date:** [October 4, 2024, 6:41pm UTC](https://community.auth0.com/t/missing-refresh-token-error-when-using-getaccesstokensilently-with-params/148654/1 "2024-10-04T18:41:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 8, 2024, 11:32pm UTC](https://community.auth0.com/t/missing-refresh-token-error-when-using-getaccesstokensilently-with-params/148654/3 "2024-10-08T23:32:43Z")

</div>

Hi @jquerijero,

I recommend checking out our [Error: Missing Refresh Token](https://community.auth0.com/t/error-missing-refresh-token/111775) knowledge solution on this error for more details.

Now, you should be able to pass the `scope` in the request outlined in the [GetTokenSilentlyOptions | @auth0/auth0-react](https://auth0.github.io/auth0-react/interfaces/GetTokenSilentlyOptions.html) documentation.

If you need to add scopes dynamically on login, you could use a post-login action script and call the `api.accessToken.addScope(scope)` method.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 22, 2024, 11:33pm UTC](https://community.auth0.com/t/missing-refresh-token-error-when-using-getaccesstokensilently-with-params/148654/4 "2024-10-22T23:33:29Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
