JsonWebTokenHandler constructor

JsonWebTokenHandler(
  1. String key
)

Constructs a JsonWebTokenHandler with the specified key for signing the generated tokens and validating the tokens to be parsed.

Implementation

JsonWebTokenHandler(String key) : _hmac = Hmac(sha256, utf8.encode(key));