v46

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-011274550.0 KB
Auth

Record Login Event

Called by the Meteor app after a login attempt to record the event, track the device, and trigger new-device notifications.

post/v1/auth/login-event

Request body

userIdstring required

Meteor user ID

loginTokenstring

Raw Meteor login token (will be hashed before storage)

hashedLoginTokenstring

Pre-hashed login token (already SHA-256 base64, skips hashing)

loginType'password' | 'google' | 'apple' | 'facebook' | 'microsoft' required

Authentication method used

ipstring required

Client IP address

userAgentstring required

Raw User-Agent header

source'web' | 'mobile' | 'api' required

Origin of the login

successboolean required

Whether the login attempt succeeded

failureReasonstring

Reason for failure (when success is false)

Response

Default Response

successboolean required
sessionIdstring

Created session ID (on successful login)

deviceIdstring

Device ID

isNewDeviceboolean required

Whether a new device was detected