Decodes a JWT token and returns its payload.
Error if the token is malformed or decoding fails.
The JWT token to decode.
The decoded payload of the token.
Decodes a JWT token and returns its payload.
Throws
Error if the token is malformed or decoding fails.