Skip to content

Commit 39a134b

Browse files
stash
1 parent 6cf8ff7 commit 39a134b

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

astro.config.mjs

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,21 @@ export default defineConfig({
9191
},
9292
},
9393
}),
94-
// env: {
95-
// validateSecrets: true,
96-
// schema: {
97-
// BETTER_AUTH_SECRET: envField.string({
98-
// context: "server",
99-
// access: "secret",
100-
// })
101-
// }
102-
// }
94+
env: {
95+
validateSecrets: true,
96+
schema: {
97+
BETTER_AUTH_SECRET: envField.string({
98+
context: "server",
99+
access: "secret",
100+
}),
101+
GITHUB_CLIENT_SECRET: envField.string({
102+
context: "server",
103+
access: "secret",
104+
}),
105+
GITHUB_CLIENT_ID: envField.string({
106+
context: "server",
107+
access: "public",
108+
})
109+
}
110+
}
103111
});

src/lib/auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { betterAuth } from 'better-auth';
22
import { admin, oAuthProxy } from 'better-auth/plugins';
33
import { D1Dialect } from 'kysely-d1';
4+
import { BETTER_AUTH_SECRET } from 'astro:env/server';
45

56
export const auth = (url: string, env: Env) => {
67
return betterAuth({

0 commit comments

Comments
 (0)