Refresh Token Policy locked to immediatly expire token

I cant seem to get a refresh token as it is always expired. I found the refresh token policy setting but the only option is “Immediately expire refresh token”. How do I change this?token settings

Thanks.

Answer

I ran across this problem myself and have only just found the solution; I couldn’t find it documented anywhere.

The short answer is, your app needs permissions (scope) to have the ability to use refresh tokens.

In Setup > Create > Apps, click the “Edit” link for your Connected App and add the scope “Perform requests on your behalf at any time (refresh_token, offline_access)”.

Once this has saved (you may have to wait a while), you will be able to change the value for the refresh token policy

Attribution
Source : Link , Question Author : user3618377 , Answer Author : Danny Smart

Leave a Comment