From 68c3f80c525df6e63763f54580eeb2ba968e73cd Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Thu, 14 Dec 2023 02:51:42 +0000 Subject: [PATCH] Fix SwiftLint warnings (#814) --- Auth0/IDTokenSignatureValidator.swift | 2 +- Auth0/OAuth2Grant.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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] {