Skip to content
Snippets Groups Projects
Commit 0d54fc71 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update Login functor

parent f8a8d81b
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
...@@ -2,13 +2,13 @@ import Bindings ...@@ -2,13 +2,13 @@ import Bindings
import XCTestDynamicOverlay import XCTestDynamicOverlay
public struct Login { public struct Login {
public var run: (Bool, Int, AuthCallbacks?, Data, Data) throws -> E2E public var run: (Bool, Int, AuthCallbacks?, ReceptionIdentity, Data) throws -> E2E
public func callAsFunction( public func callAsFunction(
ephemeral: Bool, ephemeral: Bool,
cmixId: Int, cmixId: Int,
authCallbacks: AuthCallbacks? = nil, authCallbacks: AuthCallbacks? = nil,
identity: Data, identity: ReceptionIdentity,
e2eParamsJSON: Data e2eParamsJSON: Data
) throws -> E2E { ) throws -> E2E {
try run(ephemeral, cmixId, authCallbacks, identity, e2eParamsJSON) try run(ephemeral, cmixId, authCallbacks, identity, e2eParamsJSON)
...@@ -23,7 +23,7 @@ extension Login { ...@@ -23,7 +23,7 @@ extension Login {
bindingsE2E = BindingsLogin( bindingsE2E = BindingsLogin(
cmixId, cmixId,
authCallbacks?.makeBindingsAuthCallbacks(), authCallbacks?.makeBindingsAuthCallbacks(),
identity, try identity.encode(),
e2eParamsJSON, e2eParamsJSON,
&error &error
) )
...@@ -31,7 +31,7 @@ extension Login { ...@@ -31,7 +31,7 @@ extension Login {
bindingsE2E = BindingsLoginEphemeral( bindingsE2E = BindingsLoginEphemeral(
cmixId, cmixId,
authCallbacks?.makeBindingsAuthCallbacks(), authCallbacks?.makeBindingsAuthCallbacks(),
identity, try identity.encode(),
e2eParamsJSON, e2eParamsJSON,
&error &error
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment