Skip to main content

RetryExpiredTokenRequest causes a "bad request" when trying to refresh an expired token

  • December 11, 2023
  • 2 replies
  • 194 views

Hoping someone can help and point me in the right direction
Using the .Net SDK using the Access and Refresh Token authentication and when the token expires (via the HttpRequestHandler 401 status code) and the SDK calls the RetryExpiredTokenRequest I get a Bad Request error. If I refresh the tokens outside of the SDK, the code authenticates correctly with no errors. What am I doing wrong?
Any help would be greatly appreciated
Thanks

2 replies

smartoneinok Box
Forum|alt.badge.img
  • Senior Developer Advocate
  • 181 replies
  • December 12, 2023

Hi! ✋

Do you mind sending me a copy of the code you are running and the client id for your application?

Thanks,
Alex, Box Developer Advocate 🥑


  • Author
  • New Participant
  • 1 reply
  • December 12, 2023

Alex,
I was able to refresh the token once my service account was authorized and updated to allow enablement. I missed that step in the documentation
Thanks for the help
Nick


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings