Fixed GitHub auth registration issue

This commit is contained in:
Daniel Hougaard
2024-01-27 12:38:23 +05:30
committed by Akhil Mohan
parent c880a48749
commit 606ed25104
@@ -59,7 +59,7 @@ export const registerSsoRouter = async (server: FastifyZodProvider) => {
// Passport strategy for Github // Passport strategy for Github
const isGithubOauthActive = Boolean( 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) { if (isGithubOauthActive) {
passport.use( passport.use(