Open source alternative to Semrush and Ahrefs
TypeScript backlink-analysisgoogle-search-console-mcpkeyword-researchmcpseoseo-agentseo-auditseo-automationseo-skillsseo-toolssite-audit
fix: remove better auth background tasks (#67)
Ben Senescua85f67c29875
diff --git a/src/lib/auth.ts b/src/lib/auth.tsindex 88f8cac8..93733094 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.tsxindex fa0814e3..6d11e72d 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</Link></p>}@@ -181,19 +181,13 @@ function VerifyEmailPage() {</div>) : isWaiting ? (<div className="space-y-4">- <div className="alert alert-success">- <span>- After you click the link in your email, this page will finish up- automatically.- </span>- </div><buttontype="button"className="btn btn-soft w-full"onClick={() => void handleResend()}disabled={isResending}>- {isResending ? "Sending email..." : "Send another email"}+ {isResending ? "Sending email..." : "Resend email"}</button></div>) : isPending ? (