Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.jwt_decode is undefined #73

Open
georgi-k-small opened this issue Jul 4, 2016 · 1 comment
Open

window.jwt_decode is undefined #73

georgi-k-small opened this issue Jul 4, 2016 · 1 comment

Comments

@georgi-k-small
Copy link

I am integrating jwt_decode into existing directory but I can't solve this issue.
window.jwt_decode is not a function

I also copied the typings/_custom folder as well

@snaphuman
Copy link

snaphuman commented Aug 13, 2016

You can use JwtHelper class to make use of the decodeToken method. See: https://www.npmjs.com/package/angular2-jwt#using-jwthelper-in-components.

In my particular case I decided to provide this class as injectable service that will be available trough all the app.

Greetings!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants