We want to prevent users to create a secondary account with the same email (through multiple social login or local account).
Linking account is not an option (it could create security breach).
We just want to notified the users that they already have an account with the same email.
I found several post on that subject, like Using pre registration Hooks to prevent duplicate account creation or Prevent multiple signups with the same email across different connections
But no answer with an implementation.
The right way seems to implement a Pre-Registration-Hook but I don’t find any sample for that.
I’m not fluent in JS and new to Auth0, and it’s hard to find the right way for the implementation.
Do you have an example for this frequent need ?
At least a Hook example for using the right API and the right way to notify the user with an error message if we find a duplicate account.