orderiom-api-package 0.4.88 → 0.4.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/common.js +3 -3
package/package.json
CHANGED
package/src/common.js
CHANGED
|
@@ -113,10 +113,10 @@ export function formatTime(date){
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
export function isTokenExpired(token) {
|
|
116
|
-
const base64Url = token.split(".")[1];
|
|
117
|
-
const base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
|
|
118
|
-
|
|
119
116
|
try{
|
|
117
|
+
const base64Url = token.split(".")[1];
|
|
118
|
+
const base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
|
|
119
|
+
|
|
120
120
|
const jsonPayload = decodeURIComponent(
|
|
121
121
|
atob(base64)
|
|
122
122
|
.split("")
|