Decode info in a token (which is a JWT object)
decode_jwt(token)
A string representing the encoded token.
A list containing up to 3 components: header
, payload
and signature
.
An OAuth token is a JSON Web Token, which is a set of base64URL-encoded JSON objects containing the token credentials along with an optional (opaque) verification signature. decode_jwt
decodes the credentials into an R object so they can be viewed.
Note that decode_jwt
does not touch the token signature or attempt to verify the credentials. You should not rely on the decoded information without verifying it independently. Passing the token itself to Azure is safe, as Azure will carry out its own verification procedure.
jwt.io, the main JWT informational site