We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d1ea467 + 9130ae6 commit 9c3bcb6Copy full SHA for 9c3bcb6
1 file changed
src/auth.ts
@@ -13,6 +13,11 @@ import {
13
import { eq } from 'drizzle-orm';
14
import { db } from '$lib/server/db';
15
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
+
21
export const {
22
handle: handleAuth,
23
signIn,
@@ -58,12 +63,13 @@ export const {
58
63
},
59
64
providers: [
60
65
GitHub({
61
- clientId: GITHUB_ID,
62
- clientSecret: GITHUB_SECRET
66
+ clientId: githubId,
67
+ clientSecret: githubSecret
68
}),
69
Google({
- clientId: GOOGLE_ID,
- clientSecret: GOOGLE_SECRET
70
+ clientId: googleId,
71
+ clientSecret: googleSecret
72
})
- ]
73
+ ],
74
+ trustHost: true
75
});
0 commit comments