Skip to content

Commit

Permalink
- BearerAccessTokenAuthorizer - added public init
Browse files Browse the repository at this point in the history
  • Loading branch information
KoCMoHaBTa committed Feb 9, 2020
1 parent af64664 commit acb6173
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ public struct BearerAccessTokenAuthorizer: RequestAuthorizer {
public var token: String
public var method: AuthorizationMethod

public init(token: String, method: AuthorizationMethod) {

self.token = token
self.method = method
}

public func authorize(request: URLRequest, handler: @escaping (URLRequest, Error?) -> Void) {

var request = request
Expand Down

0 comments on commit acb6173

Please sign in to comment.