mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(core): Fix evaluation of N8N_SKIP_AUTH_ON_OAUTH_CALLBACK (#16944)
This commit is contained in:
@@ -34,9 +34,13 @@ type CsrfStateParam = {
|
||||
|
||||
const MAX_CSRF_AGE = 5 * Time.minutes.toMilliseconds;
|
||||
|
||||
// TODO: Flip this flag in v2
|
||||
// https://linear.app/n8n/issue/CAT-329
|
||||
export const skipAuthOnOAuthCallback = process.env.N8N_SKIP_AUTH_ON_OAUTH_CALLBACK !== 'true';
|
||||
export function shouldSkipAuthOnOAuthCallback() {
|
||||
// TODO: Flip this flag in v2 https://linear.app/n8n/issue/CAT-329
|
||||
const value = process.env.N8N_SKIP_AUTH_ON_OAUTH_CALLBACK?.toLowerCase() ?? 'true';
|
||||
return value === 'true';
|
||||
}
|
||||
|
||||
export const skipAuthOnOAuthCallback = shouldSkipAuthOnOAuthCallback();
|
||||
|
||||
@Service()
|
||||
export abstract class AbstractOAuthController {
|
||||
|
||||
Reference in New Issue
Block a user