Decodes a JWT token and returns its payload.

Error if the token is malformed or decoding fails.