Hi, really sorry to bother you again. I'm setting ...
# support-questions-legacy
f
Hi, really sorry to bother you again. I'm setting up supertokens backend in NestJs using passwordless recipe email magic link only, no otp. How am I supposed to manage the urlWithLinkCode gotten here?
Copy code
ts
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?