verify method

Future<bool> verify(
  1. String jwt
)

Verifies the given JWT without decoding it.

jwt - The JWT to verify. Returns true if the JWT is valid, otherwise false.

Implementation

Future<bool> verify(String jwt) async {
  var token = JsonWebToken.unverified(jwt);
  return token.verify(JsonWebKeyStore()..addKey(_jsonWebKey));
}