$query = [
'id_token_hint' => $idToken, // It is retrieved from the id_token from the zitadel token response
'client_id' => $zitadelAppClientID,
'post_logout_redirect_uri' => $postRedirectUri,
'state' => Str::random(20)
];
header('Location: ' . $zitadelBaseUrl . '/oidc/v1/end_session?' . http_build_query($query));
$query = [
'id_token_hint' => $idToken, // It is retrieved from the id_token from the zitadel token response
'client_id' => $zitadelAppClientID,
'post_logout_redirect_uri' => $postRedirectUri,
'state' => Str::random(20)
];
header('Location: ' . $zitadelBaseUrl . '/oidc/v1/end_session?' . http_build_query($query));