Question

Actin - Prod Refresh token issue

  • 18 May 2021
  • 4 replies
  • 721 views

Looks like both auth token and refresh token has expired. Please suggest how to get new token.

Application name is ‘Actin’ and client_id is ‘LKszrWSjS26fhbXY7xB9Kw’


4 replies

Userlevel 1

When both access token and refresh token expire, you have to re-authenticate (login) and that is all you need to do. It is the same as after you logout, then you re-login.

I did that it navigates to https://login.ringcentral.com/?responseType=code&clientId=LKszrWSjS26fhbXY7xB9Kw&brandId=1210&state=&localeId=en_US&endpointId=&session=-6672556303093635654&display=page&prompt=login%20sso&scope=&appUrlScheme=https%3A%2F%2Fgalen.actincare.com%2FAccount%2FAuthorizeRingCentralCallBack&ui_options=&code_challenge=&code_challenge_method=&hideNavigationBar=true#/selectAccount


and then

1621360797136.png

after Authorize click it redirects to call back with code but that is invalid.

https://*CallBack?code=SUFEMDFQMTZQQVMwMHxBQUF0WlM4ajM2dWVTcFlkVm5aUWk5MlE4SzBrQ3BuaEloWVh1cmJPNDVhRDhlMDZQOVprMDNJbWRacDJWR3d2QkE1VVZEZFBPRDY2SWhoUTMtelN3bmFPZDFHOEtUeTFDbE5ieFc1MUc2bXlCYWVDQXNSYUZiRzgzeTktaGM0RU5tMjJZYUI5dXJZODFLWlBBV0hjV3pwR3ZpZGZFVnpYVE0zRXxCRzdNN1F8THl0NF9wR0RKUXNHeTh6RDlaeDlVd3xBUQ

this is response i am getting using refresh token through postman.

{
"error": "invalid_grant",
"errors": [
{
"errorCode": "OAU-212",
"message": "Token type mismatch"
}
],
"error_description": "Token type mismatch"
}


Userlevel 1

There must be something incorrect in the way you authenticate or using the code to exchange for tokens. What endpoint you use in Postman to get the token? What language is your app actually written in?

Reply