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!,