History Log
⚡ 10 min totalRecord user actions for audit logs using trackUserAction(). Events appear in the Audit Logs panel
What is History Log?
trackUserAction() records user actions for compliance, security audits, and analytics. Use it to track:
- Login/logout events — Passkey authentication
- Sensitive actions — Step-up MFA verification
- Custom events — Document changes, payments, exports
Integration Steps
Quick Start Code
// Login success
await transcodes.trackUserAction({
tag: 'user:login',
status: true,
metadata: { method: 'passkey' },
});
// MFA verification
await transcodes.trackUserAction({
tag: 'admin:access',
severity: 'high',
status: true,
metadata: { action: 'read' },
});Get Started
Start with Step 1: trackUserAction. You need the SDK loaded (CDN or npm) so transcodes or named exports are available.
Last updated on