diff --git a/Sources/Base/OAuth2AuthRequest.swift b/Sources/Base/OAuth2AuthRequest.swift index 5193d5f2..1d28d882 100644 --- a/Sources/Base/OAuth2AuthRequest.swift +++ b/Sources/Base/OAuth2AuthRequest.swift @@ -145,7 +145,7 @@ open class OAuth2AuthRequest { */ func asURLComponents() throws -> URLComponents { let comp = URLComponents(url: url, resolvingAgainstBaseURL: false) - guard var components = comp, "https" == components.scheme else { + guard var components = comp, _isDebugAssertConfiguration() || "https" == components.scheme else { throw OAuth2Error.notUsingTLS } if .GET == method && params.count > 0 {