We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a5350d commit 3c7002dCopy full SHA for 3c7002d
1 file changed
source/JSONWebToken-OpenSSL.package/JWARSASHA256.class/class/checkSignature.withKey..st
@@ -3,7 +3,7 @@ checkSignature: aString withKey: key
3
| jwtHeaderAndPayload signatureByteArray publicKey tokenParts |
4
tokenParts := $. split: aString.
5
jwtHeaderAndPayload := $. join: (tokenParts first: 2).
6
- signatureByteArray := tokenParts third base64Padded base64Decoded
+ signatureByteArray := (Base64UrlEncoder new decode: tokenParts third base64Padded)
7
asByteArray.
8
publicKey := (key includesSubstring: 'BEGIN RSA PUBLIC KEY')
9
ifTrue: [ LcEvpPublicKey setRSA: (LcRSA fromRsaPublicKeyPemString: key) ]
0 commit comments