Skip to content

Commit 3e4acb5

Browse files
stash
1 parent 6cf8ff7 commit 3e4acb5

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

astro.config.mjs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,17 @@ 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+
}
106+
}
103107
});

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)