mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
refactor(core): Lintfix cli package (#17125)
This commit is contained in:
@@ -135,7 +135,7 @@ export function getAuthToken(response: request.Response, authCookieName = AUTH_C
|
||||
|
||||
const match = authCookie.match(new RegExp(`(^| )${authCookieName}=(?<token>[^;]+)`));
|
||||
|
||||
if (!match || !match.groups) return undefined;
|
||||
if (!match?.groups) return undefined;
|
||||
|
||||
return match.groups.token;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user