+ Start a Discussion
Ankit Singh 6Ankit Singh 6 

Refresh token not coming when i hit a curl request for salesforce report rest api

I am using this curl request (curl https://test.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=xxxxxxxxxxxx" -d "client_secret=xxxxxxxxxxx" -d "username=xxxxxxxxx" -d "password=xxxxxxxxx" ) . Using this curl request i am getting access token but no refresh token. How to get refresh token using curl request?
SFDC Dev 2233SFDC Dev 2233
With the Username and Password authentication we cannot get refresh token.

For this,please refer to the link below:


Instead you can go for Code Authorization or Client Credentials Authorization :