Open obozhdi opened 6 years ago
Just a simple method in 2 different projects. First working fine, second wont compile. Any ideas?
You need to encapsulate your claims using the ClaimSet struct.
claims
ClaimSet
return JWT.encode(claims: ClaimSet(claims: [...], algorithm: .hs256("SOME SECRET STRING".data(using: .utf8)!)
Just a simple method in 2 different projects. First working fine, second wont compile. Any ideas?