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:
parent
765778e8ee
commit
c0e0e6688f
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue