@@ -96,10 +96,10 @@ final class AuthenticatorTests: XCTestCase {
9696 storeTokenExp. fulfill ( )
9797 }
9898
99- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
100- loginStorage: storage,
101- tokenHandling: tokenHandling,
102- userAuthenticator: mockUserAuthenticator)
99+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
100+ loginStorage: storage,
101+ tokenHandling: tokenHandling,
102+ userAuthenticator: mockUserAuthenticator)
103103
104104 let auth = Authenticator ( config: config, urlLoader: mockLoader)
105105
@@ -132,10 +132,10 @@ final class AuthenticatorTests: XCTestCase {
132132 XCTFail ( )
133133 }
134134
135- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
136- loginStorage: storage,
137- tokenHandling: tokenHandling,
138- userAuthenticator: Self . disabledUserAuthenticator)
135+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
136+ loginStorage: storage,
137+ tokenHandling: tokenHandling,
138+ userAuthenticator: Self . disabledUserAuthenticator)
139139
140140 let auth = Authenticator ( config: config, urlLoader: mockLoader)
141141
@@ -184,10 +184,10 @@ final class AuthenticatorTests: XCTestCase {
184184 XCTAssertEqual ( login. accessToken. value, " REFRESHED " )
185185 }
186186
187- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
188- loginStorage: storage,
189- tokenHandling: tokenHandling,
190- userAuthenticator: Self . disabledUserAuthenticator)
187+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
188+ loginStorage: storage,
189+ tokenHandling: tokenHandling,
190+ userAuthenticator: Self . disabledUserAuthenticator)
191191
192192 let auth = Authenticator ( config: config, urlLoader: mockLoader)
193193
@@ -219,10 +219,10 @@ final class AuthenticatorTests: XCTestCase {
219219 return URL ( string: " my://login " ) !
220220 }
221221
222- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
223- tokenHandling: tokenHandling,
224- mode: . manualOnly,
225- userAuthenticator: mockUserAuthenticator)
222+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
223+ tokenHandling: tokenHandling,
224+ mode: . manualOnly,
225+ userAuthenticator: mockUserAuthenticator)
226226
227227 let loadExp = expectation ( description: " load url " )
228228 let mockLoader : URLResponseProvider = { request in
@@ -286,11 +286,11 @@ final class AuthenticatorTests: XCTestCase {
286286 }
287287
288288 // Configure Authenticator with result callback
289- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
290- tokenHandling: tokenHandling,
291- mode: . manualOnly,
292- userAuthenticator: mockUserAuthenticator,
293- authenticationStatusHandler: authenticationCallback)
289+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
290+ tokenHandling: tokenHandling,
291+ mode: . manualOnly,
292+ userAuthenticator: mockUserAuthenticator,
293+ authenticationStatusHandler: authenticationCallback)
294294
295295 let loadExp = expectation ( description: " load url " )
296296 let mockLoader : URLResponseProvider = { request in
@@ -343,11 +343,11 @@ final class AuthenticatorTests: XCTestCase {
343343 }
344344
345345 // Configure Authenticator with result callback
346- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
347- tokenHandling: tokenHandling,
348- mode: . manualOnly,
349- userAuthenticator: Authenticator . failingUserAuthenticator,
350- authenticationStatusHandler: authenticationCallback)
346+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
347+ tokenHandling: tokenHandling,
348+ mode: . manualOnly,
349+ userAuthenticator: Authenticator< Data > . failingUserAuthenticator,
350+ authenticationStatusHandler: authenticationCallback)
351351
352352 let auth = Authenticator ( config: config, urlLoader: nil )
353353 do {
@@ -395,10 +395,10 @@ final class AuthenticatorTests: XCTestCase {
395395 XCTAssertEqual ( login. accessToken. value, " REFRESHED " )
396396 }
397397
398- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
399- loginStorage: storage,
400- tokenHandling: tokenHandling,
401- userAuthenticator: Self . disabledUserAuthenticator)
398+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
399+ loginStorage: storage,
400+ tokenHandling: tokenHandling,
401+ userAuthenticator: Self . disabledUserAuthenticator)
402402
403403 let auth = Authenticator ( config: config, urlLoader: mockLoader. responseProvider)
404404
@@ -453,10 +453,10 @@ final class AuthenticatorTests: XCTestCase {
453453 savedLogins. append ( login)
454454 }
455455
456- let config = Authenticator . Configuration ( appCredentials: Self . mockCredentials,
457- loginStorage: storage,
458- tokenHandling: tokenHandling,
459- userAuthenticator: Self . disabledUserAuthenticator)
456+ let config = Authenticator< Data > . Configuration( appCredentials: Self . mockCredentials,
457+ loginStorage: storage,
458+ tokenHandling: tokenHandling,
459+ userAuthenticator: Self . disabledUserAuthenticator)
460460
461461 let auth = Authenticator ( config: config, urlLoader: mockLoader)
462462
0 commit comments