TransWikia.com

refresh token not update access token

Salesforce Asked by Sergey Bondarenko on December 12, 2021

I have a trouble between integration with SalesForce and our’s service.

We are using oauth2 authorization and SalesForce REST API.

Our clients authorize successfully for the first time and get the access and refresh tokens. But the access token is expired. So the error is always ‘Session expired or invalid’.

When we try to refresh it via refresh token request it returns the same access token. And so the error is the same.

Refresh token has unlimited lifetime in the salesforce app settings.

Are we doing something wrong? or our clients has some bad settings?

Thank you

2 Answers

Make sure you are using the session token with the correct instance URL.

You'll get a Session expired or invalid error if you try to use a production org's session against one of your sandbox instances, for example.

Answered by xn. on December 12, 2021

It probably has to do with settings. The session timeout for an access token can be configured in Salesforce from Setup by entering Session Settings in the Quick Find box, then selecting Session Settings.

Answered by Asif K on December 12, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP