Skip to content

Commit

Permalink
Add improved session-handling for authorization and callback methods,…
Browse files Browse the repository at this point in the history
… to improve failed sessions in some cases
  • Loading branch information
engram-design committed Apr 4, 2024
1 parent 732d9b0 commit 75942ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 75942ad

Please sign in to comment.