0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00

fix(ui): fix bind social account link lead to register bug (#3575)

fix bind social account link lead to register flow bug
This commit is contained in:
simeng-li 2023-03-22 13:51:28 +08:00 committed by GitHub
parent 765778e8ee
commit c0e0e6688f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
});