pitchash
08/25/2022, 8:30 PMrp_st
08/26/2022, 5:19 AMrp_st
08/26/2022, 5:24 AMvalidateEmailAddress
config in passwordless.init function on the frontend.
Now this userID will be sent to the backend instead of the email. You can then override the createCodePOST API to read this userID from the request object and fetch the associated email for it from your db.
Then call the original implementation with the email.
In case the userID doesn't have an associated email, then you can send back a response like this which will show the message to the user:
json
{
status: "GENERAL_ERROR",
message: "Unknown user ID"
}
rp_st
08/26/2022, 5:24 AMpitchash
08/26/2022, 8:40 AMrp_st
08/26/2022, 8:40 AMpitchash
08/26/2022, 8:49 AMpitchash
08/26/2022, 8:51 AMrp_st
08/26/2022, 8:52 AMpitchash
08/26/2022, 8:53 AMrp_st
08/26/2022, 8:55 AMrp_st
08/26/2022, 8:55 AMpitchash
08/26/2022, 8:56 AMrp_st
08/26/2022, 8:56 AMrp_st
08/26/2022, 8:57 AMrp_st
08/26/2022, 8:57 AMpitchash
08/26/2022, 8:57 AMpitchash
08/26/2022, 8:58 AMrp_st
08/26/2022, 8:59 AMpitchash
08/26/2022, 9:00 AMpitchash
08/26/2022, 9:01 AMrp_st
08/26/2022, 9:02 AMpitchash
08/26/2022, 9:25 AMrp_st
08/26/2022, 9:26 AMpitchash
08/26/2022, 9:29 AMrp_st
08/26/2022, 9:32 AM