infrabel / themes-gnap

Standardized build to produce web themes for use with GNaP.
http://gnap.io/
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

JWT Decode - escape is deprecated #84

Closed CumpsD closed 9 years ago

CumpsD commented 9 years ago

This snippet of code shows up everywhere to decode jwt tokens:

angular.fromJson(decodeURIComponent(escape(window.atob(claims))));

However, escape is deprecated: http://www.w3schools.com/jsref/jsref_escape.asp

Figure out what to replace it with

CumpsD commented 9 years ago

https://github.com/auth0/angular-jwt/blob/master/src/angularJwt/services/jwt.js