Auth0 actions are not working if I want to have unique email address for users

So, I have a NextJS application, and I want a unique email address for each user. So if a user logs in with Google first and then tries to sign up using the same email, then their account should be linked.
I tried creating actions for the same and used the account link extension as well. But nothing seems to be working so far. Does anyone have a solution to this?

Hi @sandeep1,

Welcome to the Auth0 Community!

Could you share the Action script you wrote to check for unique users when signing up?

And if possible, the name of the tenant as well?

Thanks,
Rueben