diff --git a/lib/src/algorithms.dart b/lib/src/algorithms.dart index 37f29c0..3065644 100644 --- a/lib/src/algorithms.dart +++ b/lib/src/algorithms.dart @@ -261,7 +261,7 @@ class RSAAlgorithm extends JWTAlgorithm { int byteValue = 32; final secureRandom = pc.SecureRandom('Fortuna'); final random = Random.secure(); - switch (algorithm) { + switch (name) { case 'PS256': byteValue = 32; break;