Commit 2e59603c authored by Eduardo Sanz García's avatar Eduardo Sanz García
Browse files

feat: cleanup old JWT tokens left behind

parent e668d5f6
Pipeline #2757 passed with stages
in 3 minutes and 16 seconds
......@@ -222,7 +222,6 @@ export class AuthService {
* to 'this' when used in setTimeout call.
*/
public logOut = () => {
this.storageRemover();
this._updateCredentials();
this._logoutCallbacks.map(callback => callback && callback());
if (this._timeoutID) {
......@@ -335,6 +334,7 @@ export class AuthService {
const delay = +expireDate - +new Date();
this._timeoutID = window.setTimeout(this.logOut, delay);
} else {
this.storageRemover(); // Cleanup possible left behind token
this._credentials.next(null);
this._username.next(null);
this._realname.next(null);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment