We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
gagsbh
8 months agoHelpful | Level 5
Invalid_Grant whlie generating Access Token using saved Refresh token in Dropbox Sign .NET SDK
Hello Greg-DB ,
I am using the following Dropbox Sign .NET SDK code in my project to generate Dropbox Sign Access token using previously saved Refresh token.
public async Task<TokenRes...
- 8 months ago
[Cross-linking for reference: https://stackoverflow.com/questions/78296262/why-am-i-getting-invalid-grant-error-while-using-refresh-token-to-generate-acces ]
Hi Gagan,
Thank you for reaching out, it looks like you are receiving aninvalid_grant
error. This error typically occurs when using a stored refresh token and one of the following is true:
- Scopes for the OAuth API app have changed
- The user revoked authorization to the OAuth API app
- The OAuth API app is approved multiple times by the same user—this will cause the previous authorization to reset and a new refresh token to be generated.
If any of these actions have occurred, please try completing the authorization process again for the user to generate a newaccess_token
andrefresh_token
. Try using the newrefresh_token
to generate any newaccess_token
after the initialaccess_token
expires. Please see our OAuth Walkthrough documentation for more details.
If the issue persists, please submit a support request, along with the code snippet you just provided, so we can further assist you in determining why that error is being thrown. Thanks!
Spencer H
Dropbox Staff
[Cross-linking for reference: https://stackoverflow.com/questions/78296262/why-am-i-getting-invalid-grant-error-while-using-refresh-token-to-generate-acces ]
Hi Gagan,
Thank you for reaching out, it looks like you are receiving an invalid_grant
error. This error typically occurs when using a stored refresh token and one of the following is true:
- Scopes for the OAuth API app have changed
- The user revoked authorization to the OAuth API app
- The OAuth API app is approved multiple times by the same user—this will cause the previous authorization to reset and a new refresh token to be generated.
If any of these actions have occurred, please try completing the authorization process again for the user to generate a new access_token
and refresh_token
. Try using the new refresh_token
to generate any new access_token
after the initial access_token
expires. Please see our OAuth Walkthrough documentation for more details.
If the issue persists, please submit a support request, along with the code snippet you just provided, so we can further assist you in determining why that error is being thrown. Thanks!
gagsbh
8 months agoHelpful | Level 5
Thank you for the reply.
For me, the issue was due to:
- The OAuth API app is approved multiple times by the same user—this will cause the previous authorization to reset and a new refresh token to be generated.
About Dropbox Sign API
17 PostsLatest Activity: 15 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!