supertokens / supertokens-node

Node SDK for SuperTokens core
https://supertokens.com
Other
278 stars 72 forks source link

SuperTokens SMTP Delivery - Nodemailer #848

Open DarkNeedle opened 1 month ago

DarkNeedle commented 1 month ago

Appears SuperTokens depends on Nodemailer for SMTP delivery (standard SMTP server)? Defining SMTP server info using the passwordless example results in:

Error: The edge runtime does not support Node.js 'stream' module. (This appears to be from Nodemailer as it does not support Edge runtimes).

rishabhpoddar commented 1 month ago

Hey. We are aware of this issue. To et around this, you can define your own custom sendEmail function (https://supertokens.com/docs/passwordless/email-delivery/custom-method) in which you can use any library you like to send emails.

DarkNeedle commented 1 month ago

Is there any plans to address, even if embedding a custom SMTP library ? This issue seems to be hanging around for 1yr+

Did this ever work? https://supertokens.com/docs/passwordless/email-delivery/smtp/configure-smtp

It's in the documentation, the default generated code its SuperTokens servers via API. The fact this SMTP delivery option is document but seems not to work is puzzling. Again, issue pending 1yr+

rishabhpoddar commented 1 month ago

It works for non edge cases. I agree that the issue has been open since one year, however, since there is a rather straightforward workaround, it's very low in our list of priorities.