isConfigured()) { $logoutUrl = $auth->logoutUrl($target); } $auth->logout(); if ($logoutUrl !== null) { header('Location: ' . $logoutUrl, true, 302); exit; } header('Location: ' . $target, true, 302); exit;