hey <@498057949541826571> I am using passwordless. i am trying to do something after user registers....
a
hey @rp_st I am using passwordless. i am trying to do something after user registers. For now I am just printing in the backend after a new regisration. when try to enter a code or use magic link to verify the backend sdk crashes. I tried this override:
r
hey @aV what's the question here?
a
here is the error log
the server crashes just after I enter the otp
r
I see. You want to do this:
Copy code
originalConsumeCodePOST := *originalImplementation.ConsumeCodePOST
And then when calling the original implementation, you want to just do:
Copy code
originalConsumeCodePOST(userInput, linkCode, preAuthSessionID, options, userContext)
a
should I change the code to this?
r
yea
a
ok let me see.
thanks working now. I copy pasted the code from here https://supertokens.com/docs/passwordless/common-customizations/handling-signinup-success . please do an update here alsoo
r
Oh hmm! Ok thanks