PrerequisitesKINDE_HOST: The base domain to use for Kinde requests, this should be provided by Latner. By default it is 'https://latner.kinde.com' for Prod, or 'https://latner-uat.au.kinde.com' for UAT.
redirect_uri: The callback URL back to your App as part of the authorization flow. Make sure to let your Latner contact know what this would be so that we can whitelist it on our end.
KINDE_CLIENT_ID: The client_id setup by Latner for your App.
KINDE_CLIENT_SECRET: The client_secret setup by Latner for your App.
refresh_token: The refresh_token received from a previous grant.
Refreshing an access token can be done via Kinde SDKs or without an SDK.
To get a new Access Token using the Refresh Token, simply make a POST request to {KINDE_HOST}/oauth2/token with the following payload:
client_id={KINDE_CLIENT_ID}
&client_secret={KINDE_CLIENT_SECRET}
&grant_type=refresh_token
&refresh_token={refresh_token}
This will then return a response with the new access_token and refresh_token.
