0 votes
1 view
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 (31.8k 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].

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...