Chimanos
04/26/2023, 12:45 PMts
EmailVerification.init({
mode: 'OPTIONAL',
override: {
apis: (originalImplementation) => {
return {
...originalImplementation,
generateEmailVerifyTokenPOST: (input) => {
console.log(input)
return originalImplementation.generateEmailVerifyTokenPOST!(
input,
)
},
isEmailVerifiedGET: (input) => {
console.log(input)
return originalImplementation.isEmailVerifiedGET!(input)
},
verifyEmailPOST: (input) => {
console.log(input)
return originalImplementation.verifyEmailPOST!(input)
},
}
},
},
}),
(just logs to watch the behavior)
Uppon signup, I'm not receiving any emails; and not seeing any logs.
Am I missing something ?
NB: worth mentionning I'm using a "hook" in signup to insert a record in my own Database. It calls the originalImplementation too
NB2: worth mentionning I'm not using any frontend for now, and just calling my signup "proxy" from PostmanChimanos
04/26/2023, 1:59 PMChimanos
04/26/2023, 2:44 PMrp_st
04/26/2023, 6:19 PMrp_st
04/26/2023, 6:19 PMChimanos
04/27/2023, 8:14 AMts
`${websiteDomain}${websiteBasePath}/verify-email`
Can you confirm there is not any other convenient way to generate it ?rp_st
04/27/2023, 8:15 AMrp_st
04/27/2023, 8:15 AMrp_st
04/27/2023, 8:16 AMChimanos
04/27/2023, 8:18 AMChimanos
04/27/2023, 8:19 AMgenerateFrontendURL('/path')
could be cool; reading supertokens-node there are some semi-clever things done to clean URLs.
In my case I'd like to do the similar to align; and thus will have to re-do this in my code (extra /
pruning, etc.)rp_st
04/27/2023, 8:20 AM