diff --git a/demo/nextjs/.env.exmaple b/demo/nextjs/.env.exmaple index cc4427a2..53d2dfe7 100644 --- a/demo/nextjs/.env.exmaple +++ b/demo/nextjs/.env.exmaple @@ -1,5 +1,5 @@ GOOGLE_CLIENT_SECRET= -GOOGLE_CLIENT_ID= +NEXT_PUBLIC_GOOGLE_CLIENT_ID= BETTER_AUTH_URL="http://localhost:3000" BETTER_AUTH_SECRET= TURSO_DATABASE_URL= diff --git a/demo/nextjs/lib/auth.ts b/demo/nextjs/lib/auth.ts index 9c8c3a72..9babcb32 100644 --- a/demo/nextjs/lib/auth.ts +++ b/demo/nextjs/lib/auth.ts @@ -64,7 +64,7 @@ export const auth = betterAuth({ clientSecret: process.env.GITHUB_CLIENT_SECRET || "", }, google: { - clientId: process.env.GOOGLE_CLIENT_ID || "", + clientId: process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID || "", clientSecret: process.env.GOOGLE_CLIENT_SECRET || "", }, discord: {