From d86da49dbe367394288ec9f95b3770cf96bf1868 Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Mon, 18 Jul 2022 17:54:06 -0700 Subject: [PATCH] store pending user token after creating apple auth payload --- .../Sources/Services/Authentication/AccountCreator.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/apple/OmnivoreKit/Sources/Services/Authentication/AccountCreator.swift b/apple/OmnivoreKit/Sources/Services/Authentication/AccountCreator.swift index a0e044364..9ef9d3321 100644 --- a/apple/OmnivoreKit/Sources/Services/Authentication/AccountCreator.swift +++ b/apple/OmnivoreKit/Sources/Services/Authentication/AccountCreator.swift @@ -38,6 +38,7 @@ extension Authenticator { do { let encodedParams = (try? JSONEncoder().encode(params)) ?? Data() let pendingUserAuthPayload = try await networker.createPendingUser(params: encodedParams) + pendingUserToken = pendingUserAuthPayload.pendingUserToken return pendingUserAuthPayload.pendingUserProfile } catch { throw LoginError.make(serverError: (error as? ServerError) ?? .unknown)