FrAgOrDiE
03/28/2022, 9:58 AMts
Passwordless.init({
flowType: 'MAGIC_LINK',
contactMethod: 'EMAIL',
createAndSendCustomEmail: async (input, context) => {
console.log('sent email', input, context);
},
}),
- having this as passwordless recipe configuration, this -
sent email {
codeLifetime: 900000,
email: 'test4@revodigital.it',
preAuthSessionId: '4M1rdHhXRMuckNDhGmqTM-rZ6I_kyqR1i_WnOGr8eT4=',
urlWithLinkCode: 'https://revodigital.it/auth/verify?rid=passwordless&preAuthSessionId=4M1rdHhXRMuckNDhGmqTM-rZ6I_kyqR1i_WnOGr8eT4=#WHC1Jc6GlQ_awnN1A3o_LB7lpC0JOpY85MHWxcZLLVM=',
userInputCode: undefined
} {}
is the console.log
output.
I seem to understand that urlWithLinkCode's preAuthSessionId parameter is returning {preauthSessionId}#{linkCode}
, formatted as shown because as you can see - https://prnt.sc/a49KsLwwca-R - it's the only way it works. https://prnt.sc/O0rDyAlOnrDc
Is this an issue? Is it known?
Another question is, shouldn't I get cookies as a response? https://prnt.sc/7rq7gDL4Lp0- / https://prnt.sc/4C4djB1Cb573rp
03/28/2022, 10:01 AM{{baseURL}}
?FrAgOrDiE
03/28/2022, 10:02 AMrp
03/28/2022, 10:03 AMcreateAndSendCustomEmail
FrAgOrDiE
03/28/2022, 10:04 AMrp
03/28/2022, 10:06 AM