Fix typo in assert (#42)

This commit is contained in:
Iurii Dorofeev
2023-05-28 01:00:35 +07:00
committed by GitHub
parent d69fb09a05
commit d75adc41c5

View File

@ -229,7 +229,7 @@ class _ECDSAAlgorithm extends JWTAlgorithm {
@override
Uint8List sign(JWTKey key, Uint8List body) {
assert(key is ECPrivateKey, 'key must be a ECPublicKey');
assert(key is ECPrivateKey, 'key must be a ECPrivateKey');
final privateKey = key as ECPrivateKey;
final signer = pc.Signer('${_getHash(name)}/DET-ECDSA');