File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff 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} ) ;
Original file line number Diff line number Diff line change 11import { betterAuth } from 'better-auth' ;
22import { admin , oAuthProxy } from 'better-auth/plugins' ;
33import { D1Dialect } from 'kysely-d1' ;
4+ import { BETTER_AUTH_SECRET } from 'astro:env/server' ;
45
56export const auth = ( url : string , env : Env ) => {
67 return betterAuth ( {
You can’t perform that action at this time.
0 commit comments