Updated things, all ok except bug in v-text-field that was reported
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/* xeslint-disable */
|
||||
import decode from "jwt-decode";
|
||||
//import decode from "jwt-decode";
|
||||
import jwt_decode from "jwt-decode";
|
||||
import initialize from "./initialize";
|
||||
import notifypoll from "./notifypoll";
|
||||
|
||||
@@ -20,7 +21,7 @@ export function processLogin(authResponse, loggedInWithKnownPassword) {
|
||||
);
|
||||
return reject();
|
||||
}
|
||||
const token = decode(authResponse.token);
|
||||
const token = jwt_decode(authResponse.token);
|
||||
|
||||
if (!token || !token.iss) {
|
||||
window.$gz.store.commit(
|
||||
@@ -111,7 +112,7 @@ export function isLoggedIn() {
|
||||
}
|
||||
|
||||
function getTokenExpirationDate(encodedToken) {
|
||||
const token = decode(encodedToken);
|
||||
const token = jwt_decode(encodedToken);
|
||||
if (!token.exp) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
version: "8.0.0-alpha.84",
|
||||
version: "8.0.0-alpha.86",
|
||||
copyright: "© 1999-2020, Ground Zero Tech-Works Inc."
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user