-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent "invalid token" from being blocking (#22459)
* Throw a consistent invalid credentials error and remove invalid session cookies on the response * updated tests * prettier * Added tests for cookie clearing * prettier * Update api/src/middleware/authenticate.test.ts Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> * Update api/src/middleware/authenticate.test.ts Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> * Update api/src/middleware/authenticate.ts Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> --------- Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
- Loading branch information
Showing
3 changed files
with
114 additions
and
12 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