From 4a5b6e5b9cd40ad54844b0b31fe5391352cfb021 Mon Sep 17 00:00:00 2001 From: ToBinio Date: Thu, 15 Jan 2026 11:58:51 +0100 Subject: [PATCH] fix: rename trusted_domains to trusted_origins --- README.md | 2 +- server/utils/auth.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b290bd6..a4b3804 100644 --- a/README.md +++ b/README.md @@ -20,5 +20,5 @@ UPSTASH_TOKEN= BETTER_AUTH_SECRET= BETTER_AUTH_URL=http://localhost:3000 -TRUSTED_DOMAINS=https://taskline.tobinio.dev,https://todo.tobinio.dev +TRUSTED_ORIGINS=https://taskline.tobinio.dev,https://todo.tobinio.dev ``` diff --git a/server/utils/auth.ts b/server/utils/auth.ts index 6872805..0f46854 100644 --- a/server/utils/auth.ts +++ b/server/utils/auth.ts @@ -4,7 +4,7 @@ import { apiKey } from "better-auth/plugins"; export const auth = betterAuth({ database: new DatabaseSync("./.data/sqlite.db"), - trustedDomains: [...process.env.TRUSTED_DOMAINS!.split(",")], + trustedOrigins: [...process.env.TRUSTED_ORIGINS!.split(",")], socialProviders: { google: { clientId: process.env.GOOGLE_CLIENT_ID!, -- 2.54.0