11import ConcurrencyExtras
22import Foundation
3- import Helpers
43import HTTPTypes
4+ import Helpers
55
66#if canImport(AuthenticationServices)
77 import AuthenticationServices
@@ -18,7 +18,9 @@ public final class AuthClient: Sendable {
1818
1919 private var api : APIClient { Dependencies [ clientID] . api }
2020 var configuration : AuthClient . Configuration { Dependencies [ clientID] . configuration }
21- private var codeVerifierStorage : CodeVerifierStorage { Dependencies [ clientID] . codeVerifierStorage }
21+ private var codeVerifierStorage : CodeVerifierStorage {
22+ Dependencies [ clientID] . codeVerifierStorage
23+ }
2224 private var date : @Sendable ( ) -> Date { Dependencies [ clientID] . date }
2325 private var sessionManager : SessionManager { Dependencies [ clientID] . sessionManager }
2426 private var eventEmitter : AuthStateChangeEventEmitter { Dependencies [ clientID] . eventEmitter }
@@ -189,8 +191,8 @@ public final class AuthClient: Sendable {
189191
190192 private func _signUp( request: HTTPRequest , from body: Data ) async throws -> AuthResponse {
191193 let ( data, _) = try await api. execute ( for: request, from: body)
192-
193- let response = try configuration. decoder. decode ( AuthResponse . self, from: data)
194+
195+ let response = try configuration. decoder. decode ( AuthResponse . self, from: data)
194196
195197 if let session = response. session {
196198 await sessionManager. update ( session)
@@ -298,7 +300,7 @@ public final class AuthClient: Sendable {
298300
299301 private func _signIn( request: HTTPRequest , from body: Data ) async throws -> Session {
300302 let ( data, _) = try await api. execute ( for: request, from: body)
301-
303+
302304 let session = try configuration. decoder. decode ( Session . self, from: data)
303305
304306 await sessionManager. update ( session)
@@ -415,7 +417,7 @@ public final class AuthClient: Sendable {
415417 )
416418 )
417419 )
418-
420+
419421 return try configuration. decoder. decode ( SSOResponse . self, from: data)
420422 }
421423
@@ -449,7 +451,7 @@ public final class AuthClient: Sendable {
449451 )
450452 )
451453 )
452-
454+
453455 return try configuration. decoder. decode ( SSOResponse . self, from: data)
454456 }
455457
@@ -903,7 +905,7 @@ public final class AuthClient: Sendable {
903905
904906 private func _verifyOTP( request: HTTPRequest , from body: Data ) async throws -> AuthResponse {
905907 let ( data, _) = try await api. execute ( for: request, from: body)
906- let response = try configuration. decoder. decode ( AuthResponse . self, from: data)
908+ let response = try configuration. decoder. decode ( AuthResponse . self, from: data)
907909
908910 if let session = response. session {
909911 await sessionManager. update ( session)
@@ -1237,7 +1239,7 @@ public final class AuthClient: Sendable {
12371239 }
12381240
12391241 var queryItems : [ URLQueryItem ] = [
1240- URLQueryItem ( name: " provider " , value: provider. rawValue) ,
1242+ URLQueryItem ( name: " provider " , value: provider. rawValue)
12411243 ]
12421244
12431245 if let scopes {
0 commit comments