diff --git a/src/controllers/AuthController.php b/src/controllers/AuthController.php index 9b52f23..269a431 100644 --- a/src/controllers/AuthController.php +++ b/src/controllers/AuthController.php @@ -61,6 +61,9 @@ public function actionConnect(): ?Response public function actionCallback(): ?Response { + // Restore the session data that we saved before authorization redirection from the cache back to session + Session::restoreSession($this->request->getParam('state')); + // Get both the origin (failure) and redirect (success) URLs $origin = Session::get('origin'); $redirect = Session::get('redirect');