diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-04-13 22:51:32 +0200 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-04-13 22:51:32 +0200 |
commit | c6bc1bc4952173f61d1b1adf3b67cbd1c64e85b2 (patch) | |
tree | a03daa79ae991602853411597da77967c44df372 /frontend/src/app/_services/auth.service.ts | |
parent | 17d5ca0e942259e05e448044037048476c6d3c96 (diff) | |
parent | 5d856cf20177711074b473cc2d2133b85826fe63 (diff) |
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into dev
Diffstat (limited to 'frontend/src/app/_services/auth.service.ts')
-rw-r--r-- | frontend/src/app/_services/auth.service.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/frontend/src/app/_services/auth.service.ts b/frontend/src/app/_services/auth.service.ts index d5a16b5b..e474d436 100644 --- a/frontend/src/app/_services/auth.service.ts +++ b/frontend/src/app/_services/auth.service.ts @@ -52,7 +52,6 @@ export class AuthService { var username = property['name']; if (username != "") { this.refresher = setTimeout(() => { - console.log('refreshing token!'); this.http.post(`${API_SETTINGS.apiURL}/auth/renewJwt`, {}, { headers: this.authHeader(), responseType: 'text' }).subscribe((response) => { this.authenticate(response); }); @@ -60,7 +59,6 @@ export class AuthService { } else { this.refresher = setTimeout(() => { - console.log('refreshing token!'); this.getGuestToken().subscribe((response) => { this.authenticate(response); }); @@ -87,7 +85,6 @@ export class AuthService { if (this.cookie.check('token')) { const token = this.cookie.get('token'); const decodedToken = jwtHelper.decodeToken(token); - console.log("decoded:", decodedToken); this.shared.loggedIn = this.isAuthenticated(); this.shared.username = decodedToken.name; this.shared.userId = decodedToken.id; |