Skip to content

Commit

Permalink
OAuthFlowHandler missing public init
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Jun 16, 2021
1 parent 15614ef commit 10ca620
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/OAuthenticator/OAuthFlowHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: " ")
}
Expand Down

0 comments on commit 10ca620

Please sign in to comment.