aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_services/auth.service.ts
diff options
context:
space:
mode:
authorSonja Galovic <galovicsonja@gmail.com>2022-04-13 22:43:52 +0200
committerSonja Galovic <galovicsonja@gmail.com>2022-04-13 22:43:52 +0200
commit3c4bfb16f55aa51a50ee99327caca639e072cdab (patch)
tree7673a7acbbb3f0839cab7647792a9651b42f034a /frontend/src/app/_services/auth.service.ts
parentd1276f066c75ce7b720ec7936d7018f98f5e7ea5 (diff)
Kod preprocesiranja i tretiranja null vrednosti korisnik vidi koliko ima null redova/kolona od ukupnog broja redova/kolona. Obrisani console.log-ovi po frontu.
Diffstat (limited to 'frontend/src/app/_services/auth.service.ts')
-rw-r--r--frontend/src/app/_services/auth.service.ts3
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;