mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 06:57:12 +01:00
add config for if github auth is enabled. room for more...
This commit is contained in:
7
helpers/config.ts
Normal file
7
helpers/config.ts
Normal 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),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user