Interface AuthUser

The authenticated user returned by the auth server (/me and login).

This is the shape produced by the backend user model; it is intentionally permissive so it can be spread into application state without loss.

interface AuthUser {
    _id?: null | string;
    created_at: string;
    email: string;
    is_active: boolean;
    updated_at: string;
    username: string;
}

Properties

_id?: null | string

Backend document id (may be absent before the record is persisted).

created_at: string

ISO-8601 creation timestamp.

email: string

Contact email address.

is_active: boolean

Whether the account is allowed to authenticate.

updated_at: string

ISO-8601 last-update timestamp.

username: string

Unique login handle.