Skip to content

User Events

Events published when user accounts are created, authenticated, or profile information changes.

user.registered

Published when a new user account is created.

FieldTypeDescription
userIdstringUUID of the new user
emailstringUser's email address
registrationMethodstringHow user signed up (email, google, cognito)
json
{
  "type": "user.registered",
  "version": "1.0.0",
  "payload": {
    "aggregateId": "a1b2c3d4-...",
    "userId": "a1b2c3d4-...",
    "email": "jane@example.com",
    "registrationMethod": "google"
  }
}

user.logged_in

Published on each successful authentication.

FieldTypeDescription
userIdstringUUID of the user
emailstringUser's email address
ipAddressstring?IP address of the login request

user.profile_updated

Published when a user updates their profile information.

FieldTypeDescription
userIdstringUUID of the user
changesRecord<string, any>Key-value map of changed fields

Built with VitePress