Skip to content

Commit

Permalink
fix djyde#193
Browse files Browse the repository at this point in the history
  • Loading branch information
djyde committed Mar 27, 2022
1 parent 1aa13d7 commit 45f5ac0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ if (resolvedConfig.useGithub) {
)
}

if (resolvedConfig.useGitlab) {
providers.push(
Providers.GitLab({
clientId: process.env.GITLAB_ID,
clientSecret: process.env.GITLAB_SECRET,
})
)
}

if (resolvedConfig.google.id) {
providers.push(
Providers.Google({
Expand Down
1 change: 1 addition & 0 deletions utils.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type EnvVariable = string | undefined
export const resolvedConfig = {
useLocalAuth: process.env.USERNAME && process.env.PASSWORD,
useGithub: process.env.GITHUB_ID && process.env.GITHUB_SECRET,
useGitlab: process.env.GITLAB_ID && process.env.GITLAB_SECRET,
jwtSecret: process.env.JWT_SECRET,
isHosted: process.env.IS_HOSTED === 'true',
host: process.env.HOST || 'https://cusdis.com',
Expand Down

0 comments on commit 45f5ac0

Please sign in to comment.