loginUrl(); if ($loginUrl === null) { header('Location: /auth/login'); exit; } header('Location: ' . $loginUrl, true, 302); exit;