decodeJWS function
Decodes the provided JWS token and returns the payload.
The token
parameter represents the JWS token to be decoded.
The function returns the payload of the JWS token.
Implementation
dynamic decodeJWS(String token) {
final jwt = JWT.decode(token);
return jwt.payload;
}