Closed SwiftExpert closed 6 years ago
I think it could be that it is treating the dictionary as [String: String]
where the encode method expects [String: Any]
. Does casting this possible help?
["email": ""] as [String: Any]
Tried doing it, didnt help. but figured it out. i needed to unwrap "secret".data(using: .utf8)" it returns an optional Data object. though i don't know how the error("Ambiguous reference") relates to it...
Had this error too. It'd be great if the README were updated to reflect this fix
Hi. when im using encode function i get this error: Ambiguous reference to member 'encode(claims:algorithm:headers:)'
Swift version issue i guess? are you planning to upload a new version?