diff --git a/auth.config.ts b/auth.config.ts new file mode 100644 index 0000000..27b5076 --- /dev/null +++ b/auth.config.ts @@ -0,0 +1,11 @@ +import GitHub from "@auth/core/providers/github" +import { defineConfig } from "auth-astro" + +export default defineConfig({ + providers: [ + GitHub({ + clientId: import.meta.env.GITHUB_CLIENT_ID, + clientSecret: import.meta.env.GITHUB_CLIENT_SECRET, + }), + ], +}) diff --git a/public/admin/config.yml b/public/admin/config.yml index cd727e3..bf7b7b6 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -1,5 +1,3 @@ -local_backend: true - backend: name: github repo: brown-ccv/mmp diff --git a/public/admin/index.html b/public/admin/index.html index e5267ed..c0f08e0 100644 --- a/public/admin/index.html +++ b/public/admin/index.html @@ -10,7 +10,10 @@
- +