We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2844be8 commit bf37edcCopy full SHA for bf37edc
JWT/JWT.swift
@@ -55,7 +55,7 @@ public enum Algorithm : CustomStringConvertible {
55
let keyData = key.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)!
56
let messageData = message.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)!
57
let mac = Authenticator.HMAC(key: keyData.arrayOfBytes(), variant:variant)
58
- let result = mac.authenticate(messageData.arrayOfBytes())!
+ let result = try! mac.authenticate(messageData.arrayOfBytes())
59
return base64encode(NSData.withBytes(result))
60
}
61
0 commit comments