From 9130ae6955f1217844b0bb882ff2870e3a0b6379 Mon Sep 17 00:00:00 2001 From: AdamVacha Date: Mon, 21 Apr 2025 16:54:27 -0400 Subject: [PATCH] prod-update9 --- src/auth.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/auth.ts b/src/auth.ts index 29a3624..d51d3e1 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -13,6 +13,11 @@ import { import { eq } from 'drizzle-orm'; import { db } from '$lib/server/db'; +const githubId = GITHUB_ID || process.env.GITHUB_ID; +const githubSecret = GITHUB_SECRET || process.env.GITHUB_SECRET; +const googleId = GOOGLE_ID || process.env.GOOGLE_ID; +const googleSecret = GOOGLE_SECRET || process.env.GOOGLE_SECRET; + export const { handle: handleAuth, signIn, @@ -58,12 +63,13 @@ export const { }, providers: [ GitHub({ - clientId: GITHUB_ID, - clientSecret: GITHUB_SECRET + clientId: githubId, + clientSecret: githubSecret }), Google({ - clientId: GOOGLE_ID, - clientSecret: GOOGLE_SECRET + clientId: googleId, + clientSecret: googleSecret }) - ] + ], + trustHost: true });