Page 1 of 1

Error while refreshing access token

Posted: Mon Apr 04, 2022 6:57 am
by rish
Hey I'm using the following code block to fetch the refresh token for build https://spectrum.simprosuite.com
Screen Shot 2022-04-04 at 4.43.02 pm.png
Screen Shot 2022-04-04 at 4.43.02 pm.png (196.02 KiB) Viewed 3666 times
We integrated with this build and saved the first set of token (access and refresh) on 1/04/2022.

On 04/04/2022 we tried to fetch a new set of tokens but we were not able to do so because of invalid refresh token error.

As per api docs the refresh token should be valid for 14 days.


Not sure what is going on here. This code block works fine with other builds though.

Re: Error while refreshing access token

Posted: Mon Apr 04, 2022 10:59 pm
by robbertcha
Hi,

I have already sent you a private message, please check it on your inbox, thank you

Re: Error while refreshing access token

Posted: Tue Apr 12, 2022 9:25 am
by ConsoleDev
I am having issues with invalid access token too.

Can you advise on where to look to resolve?

Re: Error while refreshing access token

Posted: Tue Apr 12, 2022 10:14 pm
by robbertcha
Hi ConsoleDev,

You can try to grab a new access token and refresh token again by using the endpoint below:-

Reference: https://developer.simprogroup.com/apido ... t-workflow

Endpoint: https://{BUILD_NAME}.simprosuite.com/oauth2/token
Body Request:
{
"grant_type": "authorization_code",
"client_id": {YOUR_CLENT_ID},
"client_secret": "{YOUR_CLIENT_SECRET},
"code": {GET_IT_FROM_AUTHENTICATION_URL},
"state": ""
}

Please do let me know if you still have any issue, thank you