event is "login", the user also receives an in-app notification and a security email alerting them to the new sign-in.
POST /v1/auth/log
Requires a Bearer token in the Authorization header.
Request
The type of authentication event. Accepted values:
"login" or "signup".An optional device fingerprint string. Stored alongside the log entry for security auditing.
Example
Response
true when the event was logged. The server returns 200 even when logging fails internally, to avoid breaking the user’s authentication flow.Behaviour on loginWhen
event is "login", the server sends the authenticated user both an in-app notification and a security email containing the detected device, location, IP address, and timestamp. No notification is sent for "signup" events.Error cases| Status | Condition |
|---|---|
| 401 | Missing or invalid Bearer token. |
200 success: false | Logging failed internally. The user’s session is unaffected. |