Open onmyway133 opened 2 years ago
Thanks! This saved me a lot of time! Only one change I had to make was to add the bundleID or "bid" to the Payload struct, which is required by Apple.
struct Payload: JWTPayload {
private enum CodingKeys: String, CodingKey {
case issueID = "iss"
case expiration = "exp"
case audience = "aud"
case bundleId = "bid"
}
var issueID: IssuerClaim
var expiration: ExpirationClaim
var audience: AudienceClaim
var bundleId: String
func verify(using signer: JWTSigner) throws {
try expiration.verifyNotExpired()
}
}
Use JWTKit and code from AppStoreConnect library