Skip to content

Commit

Permalink
0.12.5 (fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
sahat committed Sep 11, 2015
1 parent 6b79398 commit 4d57215
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions satellizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@

if (token && token.split('.').length === 3) {
var base64Url = token.split('.')[1];
var base64 = base64Url.replace('-', '+').replace('_', '/');
var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
}
};
Expand Down Expand Up @@ -322,7 +322,7 @@
if (token) {
if (token.split('.').length === 3) {
var base64Url = token.split('.')[1];
var base64 = base64Url.replace('-', '+').replace('_', '/');
var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
var exp = JSON.parse($window.atob(base64)).exp;

if (exp) {
Expand Down
Loading

0 comments on commit 4d57215

Please sign in to comment.