Join Discord
Powered by
Hello, how can I read access token payload using f...
# support-questions-legacy
a
Alankazam
07/07/2022, 4:48 PM
Hello, how can I read access token payload using front-token header? I tried some libraries like jwt-decode but it didn't work
r
rp_st
07/07/2022, 5:01 PM
Hey! You can use our library to do it. You don’t need to manually read it yourself
rp_st
07/07/2022, 5:02 PM
But if you want to, the front-token header is base64 encoded and JSON stringified
a
Alankazam
07/07/2022, 5:03 PM
Ah, its works
Alankazam
07/07/2022, 5:03 PM
Thanks
r
rp_st
07/07/2022, 5:03 PM
Cool
rp_st
07/07/2022, 5:04 PM
This is how you can do it:
https://github.com/supertokens/supertokens-website/blob/master/lib/ts/fetch.ts#L792
rp_st
07/07/2022, 5:04 PM
Just FYI..
Previous
Next