https://supertokens.com/ logo
Title
n

n1ru4l

10/20/2022, 7:19 AM
What is the counter-part of the
disableEmailPassword
option (passed to
ThirdPartyEmailPasswordReact
from
supertokens-auth-react/recipe/thirdpartyemailpassword
) for
ThirdPartyEmailPasswordNode
(from
supertokens-node/recipe/thirdpartyemailpassword
)? If I only set
disableEmailPassword
on the frontend it is technically still possible to sign up through the backend 🤔
r

rp

10/20/2022, 7:22 AM
Hey @n1ru4l ideally you just want to use the thirdparty recipe for this.
And not thirdpartyemailpassword
n

n1ru4l

10/20/2022, 7:24 AM
Okay that makes things more complicated for us since we wnat to do this based on environment variable configuration
r

rp

10/20/2022, 7:24 AM
Hmm I see.
n

n1ru4l

10/20/2022, 7:24 AM
but should be managable with conditionals
😄
r

rp

10/20/2022, 7:25 AM
Let me check. One min
There should be a similar boolean on the backend
Hmm. Ok there isn’t.
What you can do is override the sign up API for email password and just throw an error from there in case you want to disable emailpassword
And this way, you can continue to use thirdpartyemailpassword
n

n1ru4l

10/20/2022, 7:27 AM
Would it be possible to add that boolean to the api?
r

rp

10/20/2022, 7:28 AM
Hmmm. You can open an issue about it, but unlikely to get done anytime soon from our end. It’s not that high priority for us
Especially since you can disable sign up fairly easily anyway
n

n1ru4l

10/20/2022, 7:28 AM
seems pretty easy to do so something I could tackle
r

rp

10/20/2022, 7:28 AM
Sure. Would appreciate a contribution
n

n1ru4l

10/20/2022, 7:32 AM
Okay as always thank you for the quick response ☺️
r

rp

10/20/2022, 7:53 AM
Thanks