-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve lastAttemptedUrl handling on logout and login
lastAttemptedUrl is now handled similarly for both login and logout. Observed behavior in an application with expiration support showed that the logout logic would sometimes overwrite the lastAttemptedUrl value due to the user getting bounced from target -> logoutTarget -> login -> logoutTarget. If logoutTarget was a protected route then that route replaces the lastAttemptedUrl value. Now the target is preserved during the hops and lastAttemptedUrl is cleared whenever it is used so it cannot create a side-effect.
- Loading branch information
Showing
3 changed files
with
59 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters