Skip to content

Commit

Permalink
fix: Ensure transient storage is always cleared after code exchange o…
Browse files Browse the repository at this point in the history
…ccurs.
  • Loading branch information
evansims committed Mar 27, 2023
1 parent adff863 commit be87ee9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Auth0.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ public function exchange(
}
}

$this->configuration()->getTransientStorage()->purge();

/** @var null|array<array<mixed>|int|string> $user */
$this->setUser($user ?? []);
$this->deferStateSaving(false);
Expand Down

0 comments on commit be87ee9

Please sign in to comment.