Drop custom session

This commit is contained in:
Matthew Dillon 2015-06-23 18:47:47 -08:00
parent 6f6faee122
commit 4c8cbd20c7
6 changed files with 30 additions and 37 deletions

View 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;
}
}