add config for if github auth is enabled. room for more...

This commit is contained in:
Thomas Ruoff
2026-03-03 22:21:34 +01:00
parent 899bc86967
commit e3d67fbe8a
3 changed files with 10 additions and 3 deletions

7
helpers/config.ts Normal file
View File

@@ -0,0 +1,7 @@
const { GITHUB_CLIENT_SECRET, GITHUB_CLIENT_ID } = process.env;
export function getConfig() {
return {
githubAuthEnabled: Boolean(GITHUB_CLIENT_SECRET?.length && GITHUB_CLIENT_ID?.length),
};
}