mirror of
https://github.com/jonasroussel/dart_jsonwebtoken.git
synced 2025-08-14 06:21:34 +08:00
Fix typo in assert (#42)
This commit is contained in:
@ -229,7 +229,7 @@ class _ECDSAAlgorithm extends JWTAlgorithm {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Uint8List sign(JWTKey key, Uint8List body) {
|
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 privateKey = key as ECPrivateKey;
|
||||||
|
|
||||||
final signer = pc.Signer('${_getHash(name)}/DET-ECDSA');
|
final signer = pc.Signer('${_getHash(name)}/DET-ECDSA');
|
||||||
|
Reference in New Issue
Block a user