Skip to content

Commit

Permalink
Fix TaxHub token prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
camillemonchicourt authored and jacquesfize committed Apr 10, 2024
1 parent d2b824e commit c87f6fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/app/login/loginControler.js
Expand Up @@ -13,7 +13,7 @@ app.service("loginSrv", [
return JSON.parse(current_user)
},
setCurrentUser: function(token, user, expireDate) {
localStorage.setItem("tk_id_token", token)
localStorage.setItem("th_id_token", token)
localStorage.setItem('expires_at', expireDate);
localStorage.setItem('current_user', JSON.stringify(user));

Expand All @@ -26,7 +26,7 @@ app.service("loginSrv", [
return Date() <= this.getExpiration();
},
getToken: function() {
return localStorage.getItem("tk_id_token")
return localStorage.getItem("th_id_token")
},
getCurrentUserRights() {
userRights = {
Expand Down

0 comments on commit c87f6fb

Please sign in to comment.