Skip to content

Commit 9e5ded7

Browse files
add smtp support for OTP using Resend
1 parent 19c2023 commit 9e5ded7

File tree

5 files changed

+272
-21
lines changed

5 files changed

+272
-21
lines changed

.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ GOOGLE_CLIENT_ID=
66
GOOGLE_CLIENT_SECRET=
77

88
GITHUB_CLIENT_ID=
9-
GITHUB_CLIENT_SECRET=
9+
GITHUB_CLIENT_SECRET=
10+
11+
RESEND_API_KEY=

package-lock.json

Lines changed: 231 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@radix-ui/react-checkbox": "^1.3.3",
2727
"@radix-ui/react-label": "^2.1.7",
2828
"@radix-ui/react-slot": "^1.2.3",
29+
"@react-email/render": "^1.3.1",
2930
"@tailwindcss/postcss": "^4.1.13",
3031
"bcryptjs": "^3.0.2",
3132
"better-auth": "^1.3.14",
@@ -37,6 +38,7 @@
3738
"react": "19.1.0",
3839
"react-dom": "19.1.0",
3940
"react-hook-form": "^7.63.0",
41+
"resend": "^6.1.1",
4042
"tailwind-merge": "^3.3.1",
4143
"tailwindcss": "^4.1.13",
4244
"zod": "^4.1.11"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import * as React from 'react'
2+
3+
interface EmailTemplateProps {
4+
firstName: string
5+
text: string
6+
}
7+
8+
export function EmailTemplate({ firstName, text }: EmailTemplateProps) {
9+
return (
10+
<div>
11+
<h1>Welcome, {firstName}!</h1>
12+
<p>{text}</p>
13+
</div>
14+
)
15+
}

0 commit comments

Comments
 (0)