KEYCLOAK-7048 Clear token if refresh fails (#5124)
This commit is contained in:
parent
f652b13520
commit
5514812a4d
1 changed files with 4 additions and 0 deletions
|
@ -464,6 +464,10 @@
|
|||
} else {
|
||||
console.warn('[KEYCLOAK] Failed to refresh token');
|
||||
|
||||
if (req.status == 400) {
|
||||
kc.clearToken();
|
||||
}
|
||||
|
||||
kc.onAuthRefreshError && kc.onAuthRefreshError();
|
||||
for (var p = refreshQueue.pop(); p != null; p = refreshQueue.pop()) {
|
||||
p.setError(true);
|
||||
|
|
Loading…
Reference in a new issue