Drop custom session
This commit is contained in:
parent
6f6faee122
commit
4c8cbd20c7
6 changed files with 30 additions and 37 deletions
8
app/utils/parse-base64.js
Normal file
8
app/utils/parse-base64.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
export default function parseBase64(token) {
|
||||
let tokenData = atob(token.split('.')[1]);
|
||||
try {
|
||||
return JSON.parse(tokenData);
|
||||
} catch (e) {
|
||||
return tokenData;
|
||||
}
|
||||
}
|
Reference in a new issue