mirror of
https://github.com/jonasroussel/dart_jsonwebtoken.git
synced 2025-07-30 07:23:00 +08:00
v1.0.1
This commit is contained in:
@ -73,10 +73,8 @@ class RS256Algorithm extends JWTAlgorithm {
|
||||
final parser = RSAPKCSParser();
|
||||
RSAKeyPair pair;
|
||||
|
||||
try {
|
||||
pair = parser.parsePEM(privateKey.key, password: privateKey.passphrase);
|
||||
assert(pair.private != null);
|
||||
} catch (ex) {
|
||||
pair = parser.parsePEM(privateKey.key, password: privateKey.passphrase);
|
||||
if (pair.private == null) {
|
||||
throw JWTInvalidError('invalid private RSA key');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user