Interface: RbacModelOptions
Defined in: packages/mongoose/src/models.ts:54
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
connection? | Connection | Connection to register the models on. Default: the default mongoose.connection. | packages/mongoose/src/models.ts:56 |
expiry? | boolean | mongooseAdapter() only: store an expiry per role assignment and direct permission (assignRole(role, { expiresAt })), in the expiresAt field of the link documents. Default: false: the adapter never reads or writes that field. MongoDB needs no migration either way. | packages/mongoose/src/models.ts:64 |
prefix? | string | Prepended to every collection name, e.g. 'rbac_' → rbac_permissions. Default: ''. | packages/mongoose/src/models.ts:58 |
