mirror of
https://github.com/jonasroussel/dart_jsonwebtoken.git
synced 2025-08-06 13:51:08 +08:00
Fix typo in assert (#42)
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user