How to decode the JWT encoded token payload on client-side in angular 5?

后端 未结 5 1128
Happy的楠姐
Happy的楠姐 2020-12-23 09:30

I am getting one JWT encoded access token from my API in response. But I am not able to decode it and get it in JSON format. I tried using the angular2-jwt library for it, b

5条回答
  •  一生所求
    2020-12-23 10:01

    atob function does not parse cyrillic or hebrew correctly so I must use JwtHelperService().decodeToken(token) instead.

提交回复
热议问题