verifyMore method

Future<bool> verifyMore(
  1. String jwt, {
  2. String? user,
  3. String? clientId,
})

Implementation

Future<bool> verifyMore(String jwt, {String? user, String? clientId}) async {
  var token = await JsonWebToken.decodeAndVerify(
      jwt, JsonWebKeyStore()..addKey(_jsonWebKey));
  return token.claims
      .validate(
          issuer: user != null ? Uri.parse(user) : null, clientId: clientId)
      .isEmpty;
}