Post

Replies

Boosts

Views

Activity

Reply to Sign in with apple - Multiple public keys returned
I'm using SwiftJWT https://github.com/IBM-Swift/Swift-JWT.git and it provides a method:         let jwtDecoder = JWTDecoder(keyIDToVerifier: getVerifier) which you pass a kid and it returns a verifier.     private func getVerifier(using kid: String) -> JWTVerifier?  {         guard let publicKeyPEM = toPEM(kid: kid) else {             return nil         }         guard let publicKeyData = publicKeyPEM.data(using: .utf8) else {             return nil         }         return JWTVerifier.rs256(publicKey: publicKeyData)     } toPEM(kid: kid) is just my method to lookup a key given a specific kid string.
Jun ’20