Skip to content

UserInfo

Defined in: packages/auth/src/types/results.ts:28

Public user shape exposed by getUserInfo and login flows.

Fields are optional because the backend has multiple response shapes (login response embeds a partial user; userinfo returns a fuller record). Consumers should treat absent fields as “not loaded yet”.

optional createdAt?: string

Defined in: packages/auth/src/types/results.ts:36


email: string

Defined in: packages/auth/src/types/results.ts:31


optional freeVotingCount?: number

Defined in: packages/auth/src/types/results.ts:35


optional id?: string

Defined in: packages/auth/src/types/results.ts:30

Stable identifier (mapped from backend PK or id).


optional phoneNumber?: string

Defined in: packages/auth/src/types/results.ts:34


optional role?: string

Defined in: packages/auth/src/types/results.ts:32


optional updatedAt?: string

Defined in: packages/auth/src/types/results.ts:37


optional verified?: boolean

Defined in: packages/auth/src/types/results.ts:33