Is there an existing way to send or generate a magic link using just JavaScript, without needing to do it via a POST/GET call (which the current send() method is specifically designed to do)?
It would be great to be able to send or generate magic links from within a custom API endpoint, for example:
magicLogin.send('foo@bar.com') to send an email notification to a user telling them that a document is available that included a magic link that takes them straight to it; or
magicLogin.getMagicLink('foo@bar.com') to generate a magic link URL to be used elsewhere
Thank you for your great work on this strategy!
Is there an existing way to send or generate a magic link using just JavaScript, without needing to do it via a POST/GET call (which the current
send()
method is specifically designed to do)?It would be great to be able to send or generate magic links from within a custom API endpoint, for example:
magicLogin.send('foo@bar.com')
to send an email notification to a user telling them that a document is available that included a magic link that takes them straight to it; ormagicLogin.getMagicLink('foo@bar.com')
to generate a magic link URL to be used elsewhere