Fixed GitHub auth registration issue

This commit is contained in:
Daniel Hougaard
2024-01-16 17:14:13 +04:00
committed by Akhil Mohan
parent c880a48749
commit 606ed25104

View File

@@ -59,7 +59,7 @@ export const registerSsoRouter = async (server: FastifyZodProvider) => {
// Passport strategy for Github
const isGithubOauthActive = Boolean(
appCfg.CLIENT_SECRET_GITHUB_LOGIN && appCfg.CLIENT_ID_GITLAB_LOGIN
appCfg.CLIENT_SECRET_GITHUB_LOGIN && appCfg.CLIENT_ID_GITHUB_LOGIN
);
if (isGithubOauthActive) {
passport.use(