We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a0a95e1 + e6c7132 commit 9759f73Copy full SHA for 9759f73
1 file changed
source/JSONWebToken-Core.package/JsonWebSignature.class/instance/checkSignature..st
@@ -1,5 +1,10 @@
1
signature
2
-checkSignature: parts
3
-
+checkSignature: aString
+ | token |
4
+ token := (aString isString not)
5
+ ifTrue: [
6
+ "this seems to be the old usage handing out the parts collection so resemble"
7
+ $. join: aString ]
8
+ ifFalse: [ aString ].
9
- self protectedHeader algorithm checkSignature: parts withKey: key
10
+ self protectedHeader algorithm checkSignature: token withKey: key
0 commit comments