From c0e0e6688fcd97691caf06297068e369d17beb87 Mon Sep 17 00:00:00 2001 From: simeng-li Date: Wed, 22 Mar 2023 13:51:28 +0800 Subject: [PATCH] fix(ui): fix bind social account link lead to register bug (#3575) fix bind social account link lead to register flow bug --- packages/ui/src/apis/interaction.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/ui/src/apis/interaction.ts b/packages/ui/src/apis/interaction.ts index d70e24db4..fa4861946 100644 --- a/packages/ui/src/apis/interaction.ts +++ b/packages/ui/src/apis/interaction.ts @@ -186,6 +186,12 @@ export const registerWithVerifiedSocial = async (connectorId: string) => { }; export const bindSocialRelatedUser = async (payload: SocialEmailPayload | SocialPhonePayload) => { + await api.put(`${interactionPrefix}/event`, { + json: { + event: InteractionEvent.SignIn, + }, + }); + await api.patch(`${interactionPrefix}/identifiers`, { json: payload, });