Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Tools glue
ng-ebi-authorization
Commits
2e59603c
Commit
2e59603c
authored
Feb 15, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/app/modules/auth/auth.service.ts
src/app/modules/auth/auth.service.ts
+1
-1
No files found.
src/app/modules/auth/auth.service.ts
View file @
2e59603c
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment