Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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.