Skip to content

Commit

Permalink
fixed logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine Di Monaco committed Jun 11, 2017
1 parent d796ef6 commit 2bca07d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions client/components/common/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Auth {
}

static deauthenticateUser() {
console.log(localStorage.getItem('token'));
let deauthResult = false;
logout(localStorage.getItem("token"),
function (data) {
Expand Down
1 change: 0 additions & 1 deletion client/components/common/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ let logout = function(token,success,error){
headers:{
"Authorization" : "Bearer "+token
},
data:{},
timeout: 30000,
success: function(data) {
success(data);
Expand Down
2 changes: 1 addition & 1 deletion dist/index_bundle.js

Large diffs are not rendered by default.

0 comments on commit 2bca07d

Please sign in to comment.