The logout URL is:
https://{subdomain}}.okta.com/oauth2/default/v1/logout?id_token_hint=“.$_SESSION[‘okta_id_token’].”&post_logout_redirect_uri=http://google.com
// Sign out using the default options
authClient.signOut()
// Override the post logout URI for this call
authClient.signOut({
postLogoutRedirectUri: ´${location.origin}/mdlStart/index.php/logout´
});
// In this case, the ID token is stored under the ‘myIdToken’ key
const id_token = async function() {
var idToken = await authClient.tokenManager.get(‘<?=$_SESSION['okta_id_token']?>’);
authClient.signOut({
idToken: idToken
});
}
// In this case, the access token is stored under the ‘myAccessToken’ key
const access_token = async function() {
var accessToken = await authClient.tokenManager.get(‘<?=$_SESSION['okta_access_token']?>’);
authClient.signOut({
accessToken: accessToken
});
}