Skip to content

Commit 45f5ac0

Browse files
committed
fix #193
1 parent 1aa13d7 commit 45f5ac0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

config.server.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ if (resolvedConfig.useGithub) {
6161
)
6262
}
6363

64+
if (resolvedConfig.useGitlab) {
65+
providers.push(
66+
Providers.GitLab({
67+
clientId: process.env.GITLAB_ID,
68+
clientSecret: process.env.GITLAB_SECRET,
69+
})
70+
)
71+
}
72+
6473
if (resolvedConfig.google.id) {
6574
providers.push(
6675
Providers.Google({

utils.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type EnvVariable = string | undefined
1010
export const resolvedConfig = {
1111
useLocalAuth: process.env.USERNAME && process.env.PASSWORD,
1212
useGithub: process.env.GITHUB_ID && process.env.GITHUB_SECRET,
13+
useGitlab: process.env.GITLAB_ID && process.env.GITLAB_SECRET,
1314
jwtSecret: process.env.JWT_SECRET,
1415
isHosted: process.env.IS_HOSTED === 'true',
1516
host: process.env.HOST || 'https://cusdis.com',

0 commit comments

Comments
 (0)