I’m following the instructions here to get a refresh token from the API, but I’m only getting an access token in the response:
I grab the code from the response URL and post to:
curl -XPOST ‘https://DOMAIN.auth0.com/oauth/token’ --header ‘content-type: application/x-www-form-urlencoded’ --data ‘grant_type=authorization_code’ --data ‘client_id=CLIENT_ID’ --data ‘client_secret=CLIENT_SECRET’ --data ‘code=CODE’ --data ‘redirect_uri=REDIRECT_URI’
This returns:
{“access_token”:“TOKEN”,“expires_in”:86400,“token_type”:“Bearer”}
But no Refresh Token. Not sure what I’m doing wrong.