Skip to content

Commit

Permalink
commit missing AccountConnector
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNi245 committed Aug 29, 2024
1 parent 3c9fecd commit 15e1f9a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/messenger-widget/src/hooks/auth/AccountConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 15e1f9a

Please sign in to comment.