[Hono] sendVerificationEmail: url does not include host/any paths until /verify-email

I am using hono to build an API and to send a custom email for verification (with resend). when I configure the better auth instance, this is my code
// …
emailVerification: {
sendVerificationEmail: async ({ user, url, token }, request) => {
await sendEmail('verification', user.email, {
user,
url,
token
})
},
sendOnSignUp: true
},
// …
// …
emailVerification: {
sendVerificationEmail: async ({ user, url, token }, request) => {
await sendEmail('verification', user.email, {
user,
url,
token
})
},
sendOnSignUp: true
},
// …
for the routes, I am using the default better auth handler at /api/auth/* and I am running with Deno on http://localhost:8000 the email is being sent, but the url is simply /verify-email?token=ey…&callbackURL=/—without host and other routes. is that intentional or am I missing something?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?