diff --git a/app/Services/Auth/OidcAuthService.php b/app/Services/Auth/OidcAuthService.php index 42363b8..0ed061e 100644 --- a/app/Services/Auth/OidcAuthService.php +++ b/app/Services/Auth/OidcAuthService.php @@ -86,11 +86,10 @@ public function groupMapping(): Collection return collect(config('services.oidc.group-mapping')); } - public function afterLogout() + public function afterLogout(): RedirectResponse { \Session::flush(); - - return redirect(to: config('services.oidc.logout_url')); + return redirect()->to(config('services.oidc.logout_url')); } public function allCommittees(): Collection