diff --git a/packages/core/src/lib/register.ts b/packages/core/src/lib/register.ts index b02073ced..96707715c 100644 --- a/packages/core/src/lib/register.ts +++ b/packages/core/src/lib/register.ts @@ -39,7 +39,7 @@ const saveUserInfoToSession = async ( { socialUserInfo, }, - { mergeWithLastSubmission: false } + { mergeWithLastSubmission: true } ); ctx.body = { redirectTo }; }; diff --git a/packages/core/src/lib/social.ts b/packages/core/src/lib/social.ts index d6151c2f0..ebeec8974 100644 --- a/packages/core/src/lib/social.ts +++ b/packages/core/src/lib/social.ts @@ -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; };