mirror of
https://github.com/requarks/wiki.git
synced 2026-03-02 22:57:36 -05:00
Failed refreshToken in jwt should be considered as the same as invalid JWT token #1329
Labels
No labels
BETA
BETA
accessibility
backlog
bug
can't replicate
contrib-easy
contrib-hard
contrib-medium
deferred
documentation
duplicate
duplicate
editors
enhancement
invalid
localization
migrate
ui
under review
v3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wiki#1329
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @quangld on GitHub (Apr 16, 2020).
Originally assigned to: @NGPixel on GitHub.
if the refreshToken fails in this below code, it throws new WIKI.Error.AuthGenericError(). This will show the internal error on user's screen.
function authenticate in server\core\auth.js
My suggestion is to set user to null, skip next(). That means the token is considered invalid.
Edited: fix formatting