We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Decode JWT Token

gsh1
Tera Contributor

Dear all,

I am trying to decode a JWT token with the help of following command

GlideStringUtil.base64Decode

It desodes the code but it puts some garbage values at the end like 

#�cO���;ء�ԩpj�oa@9U��C�
X ��k�)�t
However when same token is decoded online from https://jwt.io/ site it gives correct result.
Any idea why I am getting garbage values or is there any other method also to decode jwt token?

 

2 REPLIES 2

Ravi Kiran M
Kilo Contributor

Even I'm facing same issue... Any resolution to remove garbage ? And is this right way to decode JWT ?

 

Michael Culhan1
Mega Sage

The garbage values at the end are the signature, which is encrypted.