Skip to content

Commit 9c3bcb6

Browse files
authored
Merge pull request #49 from AdamVacha/prod-update2
prod-update9
2 parents d1ea467 + 9130ae6 commit 9c3bcb6

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

src/auth.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ import {
1313
import { eq } from 'drizzle-orm';
1414
import { db } from '$lib/server/db';
1515

16+
const githubId = GITHUB_ID || process.env.GITHUB_ID;
17+
const githubSecret = GITHUB_SECRET || process.env.GITHUB_SECRET;
18+
const googleId = GOOGLE_ID || process.env.GOOGLE_ID;
19+
const googleSecret = GOOGLE_SECRET || process.env.GOOGLE_SECRET;
20+
1621
export const {
1722
handle: handleAuth,
1823
signIn,
@@ -58,12 +63,13 @@ export const {
5863
},
5964
providers: [
6065
GitHub({
61-
clientId: GITHUB_ID,
62-
clientSecret: GITHUB_SECRET
66+
clientId: githubId,
67+
clientSecret: githubSecret
6368
}),
6469
Google({
65-
clientId: GOOGLE_ID,
66-
clientSecret: GOOGLE_SECRET
70+
clientId: googleId,
71+
clientSecret: googleSecret
6772
})
68-
]
73+
],
74+
trustHost: true
6975
});

0 commit comments

Comments
 (0)