From 15e1f9a8efae89610fb292fef5a58543816304a9 Mon Sep 17 00:00:00 2001 From: AlexNi245 Date: Thu, 29 Aug 2024 15:15:30 +0200 Subject: [PATCH] commit missing AccountConnector --- .../src/hooks/auth/AccountConnector.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/messenger-widget/src/hooks/auth/AccountConnector.ts b/packages/messenger-widget/src/hooks/auth/AccountConnector.ts index 3d8d808b9..f216e7d61 100644 --- a/packages/messenger-widget/src/hooks/auth/AccountConnector.ts +++ b/packages/messenger-widget/src/hooks/auth/AccountConnector.ts @@ -69,15 +69,16 @@ export const AccountConnector = ( /** * We've to check wether the profile published on chain belongs to the address we're trying to connectÌ */ - const isProfileValid = await checkUserProfile( - mainnetProvider, - onChainProfile, - address, - ); - - if (!isProfileValid) { - throw Error('Profile signature is invalid'); - } + //First occurance users logs in with onchain profile + // const isProfileValid = await checkUserProfile( + // mainnetProvider, + // onChainProfile, + // address, + // ); + + // if (!isProfileValid) { + // throw Error('Profile signature is invalid'); + // } return { userProfile: onChainProfile,