Generate magic link without using signInWithOtp
I don't believe it's possible, but I'm being asked to do this, so I'm doing my due diligence.
We have a rich text email editor built into our app for use in generating email templates. They would like to be able to use this editor to send magic links, but the output of that generator is HTML, which I don't believe we can inject into an OTP email via data. (Or maybe we can, seems unlikely.) So they want to know if it's possible to generate the magic link without sending it automatically, and then use that link in our own custom implementation of sending the magic link.
Is that possible? It doesn't seem like it is, because signInWithOtp is the only way to generate those urls, and it is going to send the email and return no data regardless.
We have a rich text email editor built into our app for use in generating email templates. They would like to be able to use this editor to send magic links, but the output of that generator is HTML, which I don't believe we can inject into an OTP email via data. (Or maybe we can, seems unlikely.) So they want to know if it's possible to generate the magic link without sending it automatically, and then use that link in our own custom implementation of sending the magic link.
Is that possible? It doesn't seem like it is, because signInWithOtp is the only way to generate those urls, and it is going to send the email and return no data regardless.