@@ -101,7 +101,7 @@ final class AuthenticatorTests: XCTestCase {
101101 storeTokenExp. fulfill ( )
102102 }
103103
104- let config = Authenticator . Configuration (
104+ let config = Authenticator< Data > . Configuration(
105105 appCredentials: Self . mockCredentials,
106106 loginStorage: storage,
107107// loginStorage: nil,
@@ -148,10 +148,10 @@ final class AuthenticatorTests: XCTestCase {
148148 XCTFail ( )
149149 }
150150
151- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
152- loginStorage: storage,
153- tokenHandling: tokenHandling,
154- userAuthenticator: Self . disabledUserAuthenticator)
151+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
152+ loginStorage: storage,
153+ tokenHandling: tokenHandling,
154+ userAuthenticator: Self . disabledUserAuthenticator)
155155
156156 let auth = Authenticator ( config: config, urlLoader: mockLoader)
157157
@@ -200,10 +200,10 @@ final class AuthenticatorTests: XCTestCase {
200200 XCTAssertEqual ( login. accessToken. value, " REFRESHED " )
201201 }
202202
203- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
204- loginStorage: storage,
205- tokenHandling: tokenHandling,
206- userAuthenticator: Self . disabledUserAuthenticator)
203+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
204+ loginStorage: storage,
205+ tokenHandling: tokenHandling,
206+ userAuthenticator: Self . disabledUserAuthenticator)
207207
208208 let auth = Authenticator ( config: config, urlLoader: mockLoader)
209209
@@ -235,10 +235,10 @@ final class AuthenticatorTests: XCTestCase {
235235 return URL ( string: " my://login " ) !
236236 }
237237
238- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
239- tokenHandling: tokenHandling,
240- mode: . manualOnly,
241- userAuthenticator: mockUserAuthenticator)
238+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
239+ tokenHandling: tokenHandling,
240+ mode: . manualOnly,
241+ userAuthenticator: mockUserAuthenticator)
242242
243243 let loadExp = expectation ( description: " load url " )
244244 let mockLoader : URLResponseProvider = { request in
@@ -301,11 +301,11 @@ final class AuthenticatorTests: XCTestCase {
301301 }
302302
303303 // Configure Authenticator with result callback
304- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
305- tokenHandling: tokenHandling,
306- mode: . manualOnly,
307- userAuthenticator: mockUserAuthenticator,
308- authenticationStatusHandler: authenticationCallback)
304+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
305+ tokenHandling: tokenHandling,
306+ mode: . manualOnly,
307+ userAuthenticator: mockUserAuthenticator,
308+ authenticationStatusHandler: authenticationCallback)
309309
310310 let loadExp = expectation ( description: " load url " )
311311 let mockLoader : URLResponseProvider = { request in
@@ -357,11 +357,11 @@ final class AuthenticatorTests: XCTestCase {
357357 }
358358
359359 // Configure Authenticator with result callback
360- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
361- tokenHandling: tokenHandling,
362- mode: . manualOnly,
363- userAuthenticator: Authenticator . failingUserAuthenticator,
364- authenticationStatusHandler: authenticationCallback)
360+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
361+ tokenHandling: tokenHandling,
362+ mode: . manualOnly,
363+ userAuthenticator: Authenticator< Data > . failingUserAuthenticator,
364+ authenticationStatusHandler: authenticationCallback)
365365
366366 let auth = Authenticator ( config: config, urlLoader: nil )
367367 do {
@@ -408,10 +408,10 @@ final class AuthenticatorTests: XCTestCase {
408408 XCTAssertEqual ( login. accessToken. value, " REFRESHED " )
409409 }
410410
411- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
412- loginStorage: storage,
413- tokenHandling: tokenHandling,
414- userAuthenticator: Self . disabledUserAuthenticator)
411+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
412+ loginStorage: storage,
413+ tokenHandling: tokenHandling,
414+ userAuthenticator: Self . disabledUserAuthenticator)
415415
416416 let auth = Authenticator ( config: config, urlLoader: mockLoader. responseProvider)
417417
@@ -468,10 +468,10 @@ final class AuthenticatorTests: XCTestCase {
468468 savedLogins. append ( login)
469469 }
470470
471- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
472- loginStorage: storage,
473- tokenHandling: tokenHandling,
474- userAuthenticator: Self . disabledUserAuthenticator)
471+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
472+ loginStorage: storage,
473+ tokenHandling: tokenHandling,
474+ userAuthenticator: Self . disabledUserAuthenticator)
475475
476476 let auth = Authenticator ( config: config, urlLoader: mockLoader)
477477
0 commit comments