kuba_huba
01/11/2024, 11:30 PMapis
and return GENERAL_ERROR
instead of returning SIGN_IN_UP_NOT_ALLOWED
in functions
overrides?
Is there a particular meaning or some kind of different handling in the frontend SDK for these two?
The documentation:
https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/deduplication/implementing-deduplication
The code I came up with - instead of throwing Error just like in the documentation, I return `SIGN_IN_UP_NOT_ALLOWED`:
ts
return {
status: "SIGN_IN_UP_NOT_ALLOWED",
reason: `Cannot use this 3rd party for sign up.`,
};
rp_st
01/12/2024, 5:38 AMkuba_huba
01/12/2024, 1:08 PM