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 c277566 commit e5e9252
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ 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 e5e9252

Please sign in to comment.