Skip to content

Commit 9437a9c

Browse files
Always send authentication attribute to Group-IB
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 08d0803 commit 9437a9c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/libs/FraudProtection/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ function sendAccountAttributes() {
1414
setAttribute('email', cachedAccount?.primaryLogin ?? '', false, true);
1515
setAttribute('mfa', cachedAccount?.requiresTwoFactorAuth ? '2fa_enabled' : '2fa_disabled', false, true);
1616
setAttribute('is_validated', cachedAccount?.validated ? 'true' : 'false', false, true);
17-
if (cachedSession?.authMethod) {
18-
setAttribute('authentication', cachedSession.authMethod, false, true);
19-
}
17+
setAttribute('authentication', cachedSession?.authMethod ?? '', false, true);
2018
}
2119

2220
function trySendToFraudProtection() {

0 commit comments

Comments
 (0)