From 0d54fc717eaff68fc7996c5e084d3933bc4b69f7 Mon Sep 17 00:00:00 2001
From: Dariusz Rybicki <dariusz@elixxir.io>
Date: Wed, 27 Jul 2022 15:38:09 +0100
Subject: [PATCH] Update Login functor

---
 Sources/ElixxirDAppsSDK/Functors/Login.swift | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Sources/ElixxirDAppsSDK/Functors/Login.swift b/Sources/ElixxirDAppsSDK/Functors/Login.swift
index ec824892..9ca617a6 100644
--- a/Sources/ElixxirDAppsSDK/Functors/Login.swift
+++ b/Sources/ElixxirDAppsSDK/Functors/Login.swift
@@ -2,13 +2,13 @@ import Bindings
 import XCTestDynamicOverlay
 
 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(
     ephemeral: Bool,
     cmixId: Int,
     authCallbacks: AuthCallbacks? = nil,
-    identity: Data,
+    identity: ReceptionIdentity,
     e2eParamsJSON: Data
   ) throws -> E2E {
     try run(ephemeral, cmixId, authCallbacks, identity, e2eParamsJSON)
@@ -23,7 +23,7 @@ extension Login {
       bindingsE2E = BindingsLogin(
         cmixId,
         authCallbacks?.makeBindingsAuthCallbacks(),
-        identity,
+        try identity.encode(),
         e2eParamsJSON,
         &error
       )
@@ -31,7 +31,7 @@ extension Login {
       bindingsE2E = BindingsLoginEphemeral(
         cmixId,
         authCallbacks?.makeBindingsAuthCallbacks(),
-        identity,
+        try identity.encode(),
         e2eParamsJSON,
         &error
       )
-- 
GitLab