From acb6173dd921485f91bfbf9d255ed7e6c493b408 Mon Sep 17 00:00:00 2001 From: Milen Halachev Date: Sun, 9 Feb 2020 19:30:16 +0200 Subject: [PATCH] - BearerAccessTokenAuthorizer - added public init --- .../RequestAuthorizer/BearerAccessTokenAuthorizer.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MHIdentityKit/Infrastructure/RequestAuthorizer/BearerAccessTokenAuthorizer.swift b/MHIdentityKit/Infrastructure/RequestAuthorizer/BearerAccessTokenAuthorizer.swift index 0c58bc1..bda7d67 100644 --- a/MHIdentityKit/Infrastructure/RequestAuthorizer/BearerAccessTokenAuthorizer.swift +++ b/MHIdentityKit/Infrastructure/RequestAuthorizer/BearerAccessTokenAuthorizer.swift @@ -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