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

Bad token encoding when UTF8 in payload #9

Open
MilosStanic opened this issue Jan 29, 2015 · 0 comments
Open

Bad token encoding when UTF8 in payload #9

MilosStanic opened this issue Jan 29, 2015 · 0 comments

Comments

@MilosStanic
Copy link

I made a copy of your script adapted to my needs,
but it breaks in a line like
https://github.com/auth0/angular-token-auth/blob/master/auth.client.js#L34

with error Unexpected token at JSON.parse.

This happens when the payload used to create token has an utf8 char in it
in my case it was the character 'ć' .

Please check.

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

1 participant