qoby
07/11/2022, 2:06 PMrp_st
07/11/2022, 2:07 PMrp_st
07/11/2022, 2:07 PMqoby
07/11/2022, 2:07 PMrp_st
07/11/2022, 2:12 PMrp_st
07/11/2022, 2:14 PMrp_st
07/11/2022, 2:15 PMrp_st
07/11/2022, 2:15 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
// ...
});
nkshah2
07/11/2022, 2:36 PMqoby
07/11/2022, 2:39 PMqoby
07/11/2022, 2:39 PMnkshah2
07/11/2022, 2:40 PMapiBasePath
set to for both your frontend and backend?nkshah2
07/11/2022, 2:41 PMappInfo
object you pass when calling SuperTokens init on the backend and frontendqoby
07/11/2022, 2:41 PMnkshah2
07/11/2022, 2:41 PMnkshah2
07/11/2022, 2:42 PMqoby
07/11/2022, 2:46 PMqoby
07/11/2022, 3:00 PMrp_st
07/11/2022, 3:07 PMrp_st
07/11/2022, 3:08 PMrp_st
07/11/2022, 3:08 PMrp_st
07/11/2022, 3:11 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_st
07/11/2022, 4:08 PMqoby
07/11/2022, 4:08 PMqoby
07/11/2022, 4:10 PMqoby
07/11/2022, 4:10 PMnkshah2
07/11/2022, 4:15 PMqoby
07/11/2022, 4:20 PMrp_st
07/11/2022, 4:21 PMrp_st
07/11/2022, 4:21 PMqoby
07/11/2022, 4:24 PMrp_st
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);
}
}
}
}
})
rp_st
07/11/2022, 4:25 PM#
in the middle (so that the hash router understands it)qoby
07/11/2022, 4:31 PM