I'm trying to retrieve the claims, audience, issuer, subject from a JWT in apex, according to this documentation:
However it doesn't work obviously.
I receive a JWT as a string from the front end, I verify it with crypto.verify, and then I want to retrieve at least the audience, issuer, and subject.
When trying this
String aud = jwt.getAud();
I receive this error
Method does not exist or incorrect signature: void getAud() from the type String
How should I do?