Core Concepts
Cognitive entropy, verification flow, and token lifecycle.
Cognitive Entropy
Entropy measures variation in interaction patterns such as mouse movement, typing, clicks, scroll and timing. For the concept, see continuous verification on docs.magentrust.ai.
Score range:
- 0.0 – 0.3: Very likely bot (block)
- 0.3 – 0.5: Suspicious (challenge or warn)
- 0.5 – 0.7: Probably human (allow with monitoring)
- 0.7 – 1.0: Definitely human (allow)
Verification Flow
- Session Creation: When a user lands on your page, MAGEN creates a session ID
- Behavioral Tracking: SDK passively records interactions (no user-visible tracking)
- Verification Request: When user submits form, SDK calculates entropy and requests token
- Token Issuance: If score passes threshold, MAGEN issues a signed JWT token
- Token Validation: Your backend validates token with MAGEN API
- Action Completion: If token is valid, process the request
Token Lifecycle
- Tokens expire after 5 minutes (configurable)
- One-time use (cannot be replayed)
- Tied to specific session ID
- Cryptographically signed (cannot be forged)