decodeJWS function

dynamic decodeJWS(
  1. String token
)

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;
}