qoby
07/11/2022, 2:06 PMrp
07/11/2022, 2:07 PMqoby
07/11/2022, 2:07 PMrp
07/11/2022, 2:12 PMqoby
07/11/2022, 2:30 PMnkshah2
07/11/2022, 2:33 PMSuperTokens.init
similar to
SuperTokens.init({
// ...
windowHandler: getWindowHandler, // Refer to src/windowHandler.ts
// ...
});
qoby
07/11/2022, 2:39 PMnkshah2
07/11/2022, 2:40 PMapiBasePath
set to for both your frontend and backend?appInfo
object you pass when calling SuperTokens init on the backend and frontendqoby
07/11/2022, 2:41 PMnkshah2
07/11/2022, 2:41 PMqoby
07/11/2022, 2:46 PMrp
07/11/2022, 3:07 PMqoby
07/11/2022, 3:21 PMnkshah2
07/11/2022, 3:22 PMqoby
07/11/2022, 3:24 PMnkshah2
07/11/2022, 3:27 PMqoby
07/11/2022, 4:07 PMrecipeList smsDelivery.override.sendSms
?rp
07/11/2022, 4:08 PMqoby
07/11/2022, 4:08 PMnkshah2
07/11/2022, 4:15 PMqoby
07/11/2022, 4:20 PMrp
07/11/2022, 4:21 PMqoby
07/11/2022, 4:24 PMrp
07/11/2022, 4:24 PMts
Passwordless.init({
emailDelivery: {
override: (oI) => {
return {
...oI,
sendEmail: async function (input) {
let magicLink = input.urlWithLinkCode // this is like {websiteDomain}/{websiteBasePath}/verify#<one time use code>
// you can parse the URL using the URL lib and modify the link however you like
// and then you can assign it back to input
input.urlWithLinkCode = magicLink
return oI.sendEmail(input);
}
}
}
}
})
#
in the middle (so that the hash router understands it)qoby
07/11/2022, 4:31 PM