Skip to main content
API Reference / modelence / server / UserInfo
UserInfo = object
Defined in: packages/modelence/src/auth/types.ts:6

Properties

PropertyTypeDescriptionDefined in
handlestringThe user’s display handle.packages/modelence/src/auth/types.ts:10
hasRole(role) => booleanReturns true if the user has the given role.packages/modelence/src/auth/types.ts:14
idstringThe user’s unique identifier.packages/modelence/src/auth/types.ts:8
requireRole(role) => voidThrows an error if the user does not have the given role.packages/modelence/src/auth/types.ts:16
rolesstring[]The role strings assigned to this user in the database.packages/modelence/src/auth/types.ts:12