PublicUser
Public user record returned by Auth.
| Name | Type | Definition |
|---|---|---|
id | UserId | User UUID. |
project_id | ProjectId | Project that owns the user. |
email? | string | User email address. |
phone? | string | User phone number. |
email_verified | boolean | Whether the user's email is verified. |
phone_verified | boolean | Whether the user's phone is verified. |
is_anonymous | boolean | Whether the user was created as an anonymous user. |
created_at | IsoTimestamp | User creation timestamp. |
updated_at | IsoTimestamp | User update timestamp. |
last_sign_in_at? | IsoTimestamp | null | Last 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": {}}