“JSON Web Tokens (JWT) are an open, industry standard [RFC 7519] method for representing claims securely between two parties.” - https://jwt.io/
To decode a token, the following logic can be used:
-
JWT Token is received as:
-
The following logic can be used to decode it:
-
The result would look like the following (results redacted due for security reasons):