diff --git a/Auth0/IDTokenSignatureValidator.swift b/Auth0/IDTokenSignatureValidator.swift index 4cda4df0..449e5d08 100644 --- a/Auth0/IDTokenSignatureValidator.swift +++ b/Auth0/IDTokenSignatureValidator.swift @@ -46,8 +46,8 @@ struct IDTokenSignatureValidator: JWTAsyncValidator { } algorithm.verify(jwt, using: jwk) ? callback(nil) : callback(ValidationError.invalidSignature) case .failure: callback(ValidationError.missingPublicKey(kid: kid)) + } } - } } private func validateAlg(_ jwt: JWT) -> Auth0Error? { diff --git a/Auth0/OAuth2Grant.swift b/Auth0/OAuth2Grant.swift index 63dd2ea7..d878ebbd 100644 --- a/Auth0/OAuth2Grant.swift +++ b/Auth0/OAuth2Grant.swift @@ -90,8 +90,8 @@ struct PKCE: OAuth2Grant { } callback(.success(credentials)) } + } } - } } func values(fromComponents components: URLComponents) -> [String: String] {