|
@@ -71,7 +71,6 @@ http.interceptors.response.use((response) => { |
|
|
* @returns <any>object |
|
|
* @returns <any>object |
|
|
*/ |
|
|
*/ |
|
|
function decryptJWT(token) { |
|
|
function decryptJWT(token) { |
|
|
console.log(token) |
|
|
|
|
|
token = token.replace(/_/g, "/").replace(/-/g, "+"); |
|
|
token = token.replace(/_/g, "/").replace(/-/g, "+"); |
|
|
const json = decodeURIComponent(escape(window.atob(token.split(".")[1]))); |
|
|
const json = decodeURIComponent(escape(window.atob(token.split(".")[1]))); |
|
|
return JSON.parse(json); |
|
|
return JSON.parse(json); |
|
|