Closed
Description
I have implemented into my project the code from your example at https://github.com/auth0/angular-token-auth/
However, if the payload contains an UTF8 character, in my case 'ć' the payload is badly encoded, and I get an error when doing a JSON.parse of the payload, like I described here auth0-blog/angular-token-auth#9
Activity
brianloveswords commentedon Jan 31, 2015
This was an issue in
node-jws
, I was usingbinary
as the default encoding with no option to override. I just released v2.0.0 which changes the default toutf8
and gives the option to override the encoding.robertu7 commentedon Mar 2, 2015
Same problem with @MilosStanic , see below code:
then when:
with error Unexpected token at JSON.parse.
robertu7 commentedon Mar 2, 2015
@brianloveswords Awesome! 👍
jfromaniello commentedon Mar 6, 2015
It will be fixed on v4. Thank you guys!