Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Request failed with status code 400 : while getting new access token using the refresh token

Hi
We have an application where we have used the Authorization Code Grant Flow (with PKCE).
When the user first time authorize the app then we save the access_token and refresh token in the database. 
after that a cron job runs at regular interval which first checks whether the access token is expired or not (by checking the "exp" key after decoding it), if its expired then it get the new access token using the refresh token, and the obtained access_token and refresh_tokens are again replaced in the database..
The problem is it runs perfectly for 2-3 days, but after that suddenly the "400" error comes while getting new access_token using the refresh token.
One of the latest refresh tokens which failed are-
1. 289b32007cc6af6f064c5c0c31a3b466c78ed892a0f7f2c6b5abad97073029ce
2. 58b61ac2c7f273a9d964ec5e147b33257109319f2f0960d4e47c332cb7397026

I am surprised that how is it possible? this process runs successfully for 2-3 days but suddenly it throws error







 


Best Answer
0 Votes
1 REPLY 1

The same thing happened yesterday with this token also-

6ba6874948444fcc7592dcaa6ebdb58f854bb178420b610e0043f3325295bca9

Best Answer
0 Votes