diff --git a/app/utils/parse-base64.js b/app/utils/parse-base64.js index deb8f8c..5735e8f 100644 --- a/app/utils/parse-base64.js +++ b/app/utils/parse-base64.js @@ -1,6 +1,7 @@ export default function parseBase64(token) { - let tokenData = atob(token.split('.')[1]); + let tokenData; try { + tokenData = atob(token.split('.')[1]); return JSON.parse(tokenData); } catch (e) { return tokenData;