Skip to content

feat(security): device trust management & recognition#344

Open
Saj8292008 wants to merge 12 commits intorohitdash08:mainfrom
Saj8292008:feat/device-trust-125
Open

feat(security): device trust management & recognition#344
Saj8292008 wants to merge 12 commits intorohitdash08:mainfrom
Saj8292008:feat/device-trust-125

Conversation

@Saj8292008
Copy link

Summary

Implements device fingerprinting and trust management so users can mark devices as trusted and skip unusual login alerts on recognized devices.

Features

  • Device fingerprinting (userAgent + screen + timezone + language)
  • Trust current device with configurable expiration (default 90 days)
  • Auto-cleanup of expired trusted devices
  • Human-readable device names (e.g. Chrome on macOS)
  • Remove individual or all trusted devices
  • Full test coverage (7 test cases)

Files

  • app/src/utils/device-trust.ts — Core module
  • app/src/__tests__/device-trust.test.ts — Tests

Builds on top of login anomaly detection from PR #342.

Fixes #125

sydney0829 and others added 12 commits March 8, 2026 16:27
…r login anomaly detector; test coverage includes empty history, clipping, and legacy format
…ats; exact UA+IP matching; MAX_HISTORY=5; add tests
Implements device fingerprinting and trust management so users can mark
devices as trusted and skip unusual login alerts on recognized devices.

Features:
- Device fingerprinting (userAgent + screen + timezone + language)
- Trust current device with configurable expiration (default 90 days)
- Auto-cleanup of expired trusted devices
- Human-readable device names (e.g. 'Chrome on macOS')
- Remove individual or all trusted devices
- Full test coverage

Fixes rohitdash08#125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Device trust management & recognition

2 participants