fragordie
03/29/2022, 1:00 PMts
Passwordless.init({
flowType: 'MAGIC_LINK',
contactMethod: 'EMAIL',
createAndSendCustomEmail: async (input, context) => {
console.log('email sent', input, context); //pretending I'm sending an email
// outputs
// email sent {
// codeLifetime: 7200000,
// email: 'test4@revodigital.it',
// preAuthSessionId: 'hAJ3OURx4rtUb4ylrheRZm0ADBEwJ8KD8rYsb__yIqQ=',
// urlWithLinkCode: 'http://localhost:3012/auth/verify?rid=passwordless&preAuthSessionId=hAJ3OURx4rtUb4ylrheRZm0ADBEwJ8KD8rYsb__yIqQ=#CO7FrG4PX6cpoYeOdGxuFQ9pbjJFilDs2mGK08wdNMo=',
//userInputCode: undefined
//} {}
},
}),
Should I create an endpoint handling /auth/verify
? How would I get the linkCode then?