0
Fork 0
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:
Wang Sijie 2022-02-16 14:43:01 +08:00 committed by GitHub
parent 080bee6935
commit e206dfcecb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ const saveUserInfoToSession = async (
{
socialUserInfo,
},
{ mergeWithLastSubmission: false }
{ mergeWithLastSubmission: true }
);
ctx.body = { redirectTo };
};

View file

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