From 10ca6201e79318f6ac66ec9836fd23fb18b6231a Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Wed, 16 Jun 2021 11:49:11 -0400 Subject: [PATCH] OAuthFlowHandler missing public init --- Sources/OAuthenticator/OAuthFlowHandler.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/OAuthenticator/OAuthFlowHandler.swift b/Sources/OAuthenticator/OAuthFlowHandler.swift index 1d1936a..5417e53 100644 --- a/Sources/OAuthenticator/OAuthFlowHandler.swift +++ b/Sources/OAuthenticator/OAuthFlowHandler.swift @@ -7,6 +7,14 @@ public struct OAuthFlowHandler { public var callbackURLScheme: String public var scopes: [String] + public init(authorizationHost: String, clientId: String, clientPassword: String, callbackURLScheme: String, scopes: [String]) { + self.authorizationHost = authorizationHost + self.clientId = clientId + self.clientPassword = clientPassword + self.callbackURLScheme = callbackURLScheme + self.scopes = scopes + } + public var scopeString: String { return scopes.joined(separator: " ") }