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