Refresh Token
Tip: To protect members data, Passport does not generate long-lived access tokens.
Make sure your application refreshes access tokens before they expire, to avoid unnecessarily sending your application's users through the authorization process again.
Refreshing an access token is a seamless user experience. To refresh an access token, go through the authorization process again to fetch a new token. This time however, in the refresh workflow, the authorization screen is bypassed, and the member is redirected to your redirect URL, provided the following conditions are met:
The member is still logged into onepassport.eu
The member's current access token has not expired
If the member is no longer logged in to onepassport.eu or their access token has expired, they are sent through the normal authorization process.
To use the refresh token, make a POST request to the service’s token endpoint with grant_type=refresh_token
, and include the refresh token as well as the client credentials.
Last updated