Hi <@498057949541826571>, i recently switched from supertokens node 11.0.2 to supertokens node 12.0....
i
Hi @rp_st, i recently switched from supertokens node 11.0.2 to supertokens node 12.0.3. In 11.0.2 i used emailVerificationFeature and resetPasswordFeature in init EmailPassword, but in 12.0.3 there are no first one and second one without changing link function... So, how can I upgrade to the latest version without cutting functionality?
r
Hey! I suggest you see the changelog in the node SDK. It has code snippets for how to upgrade
But essentially, we have extracted email verification as it’s own recipe and you need to do init on that too. So your configs for email verification will go in there
i
Okey, and what about changing reset password link function?
in resetPasswordFeture there were two overridable functions: getlink and sendcustomemail, now there is only second one
r
Yea. So the logic for getLink would go in the emailDelivery config. See the email delivery section in the docs for that.
i
Ok..., thank you
r
You should browse through the Changelog once. It should have all the migration info
i
Yeah, it is usefull, thanks
And if I understood correctly, all email deliveries related with verification went to one emaildelivery config in emailverification recipe?
r
Yes