angular-token-auth icon indicating copy to clipboard operation
angular-token-auth copied to clipboard

Bad token encoding when UTF8 in payload

Open MilosStanic opened this issue 11 years ago • 0 comments

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.

MilosStanic avatar Jan 29 '15 22:01 MilosStanic