mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
fix: connector_id_mismatch and mergeWithLastSubmission (#240)
This commit is contained in:
parent
080bee6935
commit
e206dfcecb
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ const saveUserInfoToSession = async (
|
|||
{
|
||||
socialUserInfo,
|
||||
},
|
||||
{ mergeWithLastSubmission: false }
|
||||
{ mergeWithLastSubmission: true }
|
||||
);
|
||||
ctx.body = { redirectTo };
|
||||
};
|
||||
|
|
|
@ -50,7 +50,7 @@ export const getUserInfoFromInteractionResult = async (
|
|||
})
|
||||
.parse(interactionResult);
|
||||
|
||||
assertThat(result.socialUserInfo.connectorId === connectorId, 'session.insufficient_info');
|
||||
assertThat(result.socialUserInfo.connectorId === connectorId, 'session.connector_id_mismatch');
|
||||
|
||||
return result.socialUserInfo.userInfo;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue