UserInfo = object
Defined in: packages/modelence/src/auth/types.ts:41
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
avatarUrl? | string | - | packages/modelence/src/auth/types.ts:54 |
firstName? | string | - | packages/modelence/src/auth/types.ts:52 |
handle | string | The user’s display handle. | packages/modelence/src/auth/types.ts:45 |
hasRole | (role) => boolean | Returns true if the user has the given role. | packages/modelence/src/auth/types.ts:49 |
id | string | The user’s unique identifier. | packages/modelence/src/auth/types.ts:43 |
lastName? | string | - | packages/modelence/src/auth/types.ts:53 |
requireRole | (role) => void | Throws an error if the user does not have the given role. | packages/modelence/src/auth/types.ts:51 |
roles | string[] | The role strings assigned to this user in the database. | packages/modelence/src/auth/types.ts:47 |