diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 88f8cac..9373309 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -1,4 +1,4 @@ -import { env, waitUntil } from "cloudflare:workers"; +import { env } from "cloudflare:workers"; import { betterAuth } from "better-auth"; import { drizzleAdapter } from "better-auth/adapters/drizzle"; import { tanstackStartCookies } from "better-auth/tanstack-start"; @@ -29,13 +29,6 @@ function createAuth() { baseURL: baseUrl, secret: getHostedSecret(), ...baseAuthConfig, - advanced: { - backgroundTasks: { - handler: (promise) => { - waitUntil(promise); - }, - }, - }, emailAndPassword: { ...baseAuthConfig.emailAndPassword, requireEmailVerification: true, diff --git a/src/routes/verify-email.tsx b/src/routes/verify-email.tsx index fa0814e..6d11e72 100644 --- a/src/routes/verify-email.tsx +++ b/src/routes/verify-email.tsx @@ -67,8 +67,8 @@ function getVerifyEmailPageCopy({ if (isWaiting && email) { return { - title: "Check your email", - helperText: `We sent a confirmation link to ${email}. Open it to confirm your email.`, + title: "Verify your email", + helperText: `Click the link we sent to ${email} to verify your email.`, }; } @@ -161,7 +161,7 @@ function VerifyEmailPage() { search={getSignInSearch(redirectTo)} className="text-base-content/50 hover:text-base-content transition-colors" > - Sign in + Back to sign in
} @@ -181,19 +181,13 @@ function VerifyEmailPage() { ) : isWaiting ? (