Documentation navigation

PublicUser

Public user record returned by Auth.

NameTypeDefinition
idUserIdUser UUID.
project_idProjectIdProject that owns the user.
email?stringUser email address.
phone?stringUser phone number.
email_verifiedbooleanWhether the user's email is verified.
phone_verifiedbooleanWhether the user's phone is verified.
is_anonymousbooleanWhether the user was created as an anonymous user.
created_atIsoTimestampUser creation timestamp.
updated_atIsoTimestampUser update timestamp.
last_sign_in_at?IsoTimestamp | nullLast sign-in timestamp, or null if never signed in.
providers?string[]Identity providers linked to the user.
identities?PublicIdentity[]External identities linked to the user.
factors?PublicFactor[]MFA factors enrolled by the user.
user_attributes?JsonObject
system_attributes?JsonObject

Example

{  "id": "user-id",  "project_id": "project-id",  "email": "user@example.com",  "phone": "+15551234567",  "email_verified": true,  "phone_verified": true,  "is_anonymous": false,  "created_at": "2026-01-01T00:00:00.000Z",  "updated_at": "2026-01-01T00:00:00.000Z",  "last_sign_in_at": "2026-01-01T00:00:00.000Z",  "providers": [    "github"  ],  "identities": [    {      "id": "identity-id",      "provider_id": "provider-user-id",      "user_id": "user-id",      "provider": "github",      "email": "user@example.com",      "last_sign_in_at": "2026-01-01T00:00:00.000Z",      "created_at": "2026-01-01T00:00:00.000Z",      "updated_at": "2026-01-01T00:00:00.000Z",      "identity_data": {}    }  ],  "factors": [    {      "id": "factor-id",      "factor_type": "totp",      "status": "verified",      "display_name": "Authenticator app",      "phone": "+15551234567",      "created_at": "2026-01-01T00:00:00.000Z",      "updated_at": "2026-01-01T00:00:00.000Z",      "last_challenged_at": "2026-01-01T00:00:00.000Z"    }  ],  "user_attributes": {},  "system_attributes": {}}