@@ -156,7 +156,7 @@ const createGitHubProvider = (clientId: string, clientSecret: string, baseUrl?:
156156 ] . join ( ' ' ) ,
157157 } ,
158158 } ,
159- allowDangerousEmailAccountLinking : true ,
159+ allowDangerousEmailAccountLinking : env . AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING === ' true' ,
160160 } ) ;
161161}
162162
@@ -187,7 +187,7 @@ const createGitLabProvider = (clientId: string, clientSecret: string, baseUrl?:
187187 userinfo : {
188188 url : `${ url } /api/v4/user` ,
189189 } ,
190- allowDangerousEmailAccountLinking : true ,
190+ allowDangerousEmailAccountLinking : env . AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING === ' true' ,
191191 } ) ;
192192}
193193
@@ -196,7 +196,7 @@ const createGoogleProvider = (clientId: string, clientSecret: string): Provider
196196 id : 'google' satisfies IdentityProviderType ,
197197 clientId : clientId ,
198198 clientSecret : clientSecret ,
199- allowDangerousEmailAccountLinking : true ,
199+ allowDangerousEmailAccountLinking : env . AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING === ' true' ,
200200 } ) ;
201201}
202202
@@ -206,7 +206,7 @@ const createOktaProvider = (clientId: string, clientSecret: string, issuer: stri
206206 clientId : clientId ,
207207 clientSecret : clientSecret ,
208208 issuer : issuer ,
209- allowDangerousEmailAccountLinking : true ,
209+ allowDangerousEmailAccountLinking : env . AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING === ' true' ,
210210 } ) ;
211211}
212212
@@ -216,7 +216,7 @@ const createKeycloakProvider = (clientId: string, clientSecret: string, issuer:
216216 clientId : clientId ,
217217 clientSecret : clientSecret ,
218218 issuer : issuer ,
219- allowDangerousEmailAccountLinking : true ,
219+ allowDangerousEmailAccountLinking : env . AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING === ' true' ,
220220 } ) ;
221221}
222222
@@ -226,7 +226,7 @@ const createMicrosoftEntraIDProvider = (clientId: string, clientSecret: string,
226226 clientId : clientId ,
227227 clientSecret : clientSecret ,
228228 issuer : issuer ,
229- allowDangerousEmailAccountLinking : true ,
229+ allowDangerousEmailAccountLinking : env . AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING === ' true' ,
230230 } ) ;
231231}
232232
@@ -249,7 +249,7 @@ const createBitbucketCloudProvider = (clientId: string, clientSecret: string): P
249249 ] . join ( ' ' ) ,
250250 } ,
251251 } ,
252- allowDangerousEmailAccountLinking : true ,
252+ allowDangerousEmailAccountLinking : env . AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING === ' true' ,
253253 } ) ;
254254}
255255
@@ -317,7 +317,7 @@ const createBitbucketServerProvider = (clientId: string, clientSecret: string, b
317317 image : null ,
318318 } ;
319319 } ,
320- allowDangerousEmailAccountLinking : true ,
320+ allowDangerousEmailAccountLinking : env . AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING === ' true' ,
321321 } as Provider ;
322322}
323323
@@ -327,7 +327,7 @@ export const createAuthentikProvider = (clientId: string, clientSecret: string,
327327 clientId : clientId ,
328328 clientSecret : clientSecret ,
329329 issuer : issuer ,
330- allowDangerousEmailAccountLinking : true ,
330+ allowDangerousEmailAccountLinking : env . AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING === ' true' ,
331331 } ) ;
332332}
333333
0 commit comments