When a user tries to sign up, how can I know if they are already logged in with a social provider, and avoid creating a duplicate account with the same email address?
Hi, @rp_st . I am using thirdpartyemailpassword recipe and implemented account deduplication as shown above.
Now I am trying to show different messages on following cases:
1. user tries signup via emailpassword while he already has account with emailpassword.
2. user tries signup via emailpassword while he already has account with social provider.
3. user tries login via emailpassword while he already has account with social provider.
4. user tries login/signup via social provider while he already has account with other social provider.
5. user tries login/signup via social provider while he already has account with emailpassword.
Problems is that emailPasswordSignUp function only accepts one specific status code.
Could you tell me how I can achieve this please?
r
rp_st
01/26/2023, 11:48 AM
Hey @bian see the section in our docs about sending custom response to the frontend.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).