From 088c277fdd58a83fab9874ff88ef5158cc6b675b Mon Sep 17 00:00:00 2001 From: Moritz Lang Date: Mon, 14 Aug 2017 14:34:06 +0200 Subject: [PATCH] [fix] FacebookAuth.Result to have a public init for better testability --- FacebookAuth/Base/FacebookAuth.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/FacebookAuth/Base/FacebookAuth.swift b/FacebookAuth/Base/FacebookAuth.swift index 6048125..8ad511a 100644 --- a/FacebookAuth/Base/FacebookAuth.swift +++ b/FacebookAuth/Base/FacebookAuth.swift @@ -80,6 +80,12 @@ public final class FacebookAuth: NSObject { public let token: String? public let error: FacebookAuth.Error? public let granted: [FacebookAuth.Permission]? + + public init(token: String?, error: FacebookAuth.Error?, granted: [FacebookAuth.Permission]?) { + self.token = token + self.error = error + self.granted = granted + } } public struct URLParser {