This commit is contained in:
2020-04-02 13:59:54 +00:00
parent 9714ecb3f0
commit af33fc9beb

View File

@@ -3,7 +3,7 @@ import decode from "jwt-decode";
import initialize from "./initialize"; import initialize from "./initialize";
export function processLogin(response) { export function processLogin(response) {
var promise = new Promise(function(resolve, reject) { return new Promise(function(resolve, reject) {
//is token present? //is token present?
if (!response || !response.data || !response.data.token) { if (!response || !response.data || !response.data.token) {
window.$gz.store.commit( window.$gz.store.commit(
@@ -49,7 +49,7 @@ export function processLogin(response) {
resolve(true); resolve(true);
}); });
}); });
return promise; // return promise;
} }
export function processLogout() { export function processLogout() {