verify method
Verify the signature
of body
with key
return true
if the signature is correct false
otherwise
Implementation
@override
bool verify(JWTKey key, Uint8List body, Uint8List signature) {
assert(key is EdDSAPublicKey, 'key must be a EdDSAPublicKey');
final publicKey = key as EdDSAPublicKey;
try {
return ed.verify(publicKey.key, body, signature);
} catch (ex) {
return false;
}
}