JSONWebToken.swift
JSONWebToken.swift copied to clipboard
Problem
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.
return JWT.encode(claims: ClaimSet(claims: [...],
algorithm: .hs256("SOME SECRET STRING".data(using: .utf8)!)