verifyMore method
Verifies the given JWT and validates its claims.
jwt - The JWT to verify and validate.
user - Optional issuer of the JWT.
clientId - Optional client ID for the JWT.
Returns true if the JWT is valid and claims are valid, otherwise false.
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;
}