You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Is there a way to set Nodemailer options to get the login page to show the login button with the text "sign in with email "instead of "Sign in with Nodemailer"
This is my nodemailer config. return { id: "nodemailer", type: "email", name: "Email", server: { host: "localhost", port: 25, auth: { user: "", pass: "" } }, from: "Auth.js <no-reply@authjs.dev>", maxAge: 24 * 60 * 60, async sendVerificationRequest(params) { const { identifier, url, provider, theme } = params const { host } = new URL(url) const transport = createTransport(provider.server) const result = await transport.sendMail({ to: identifier, from: provider.from, subject: Sign in to ${host}, text: text({ url, host }), html: html({ url, host, theme }), }) const failed = result.rejected.concat(result.pending).filter(Boolean) if (failed.length) { throw new Error(Email (${failed.join(", ")}) could not be sent) } }, options: config, } }
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there a way to set Nodemailer options to get the login page to show the login button with the text "sign in with email "instead of "Sign in with Nodemailer"
This is my nodemailer config.
return { id: "nodemailer", type: "email", name: "Email", server: { host: "localhost", port: 25, auth: { user: "", pass: "" } }, from: "Auth.js <no-reply@authjs.dev>", maxAge: 24 * 60 * 60, async sendVerificationRequest(params) { const { identifier, url, provider, theme } = params const { host } = new URL(url) const transport = createTransport(provider.server) const result = await transport.sendMail({ to: identifier, from: provider.from, subject:
Sign in to ${host}, text: text({ url, host }), html: html({ url, host, theme }), }) const failed = result.rejected.concat(result.pending).filter(Boolean) if (failed.length) { throw new Error(
Email (${failed.join(", ")}) could not be sent) } }, options: config, } }
Beta Was this translation helpful? Give feedback.
All reactions