Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (11.9k points)

I am developing a salesforce app and using OAuth 2.0 to login. I have a refresh token; how do I get a new access_token by sending a request to salesforce via OAuth 2.0 containing the refresh token for a particular user?

1 Answer

0 votes
by (32.1k points)

Your application can obtain a new access token by POSTing another request on https://login.salesforce.com/services/oauth2/token

The payload should be of the form:

grant_type=refresh_token&client_id=[your client id]&client_secret=[your client secret]&refresh_token=[the user's refresh token].

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...