Interface: MongooseAdapterOptions
Defined in: packages/mongoose/src/adapter.ts:58
Options of new MongooseRbacAdapter(models, options).
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
expiry? | boolean | Store an expiry per role assignment and direct permission, in the link documents' expiresAt field. The models must declare that field (the ones of createRbacModels() / rbacSchemas() do, from 1.2). Default: false: the adapter never reads or writes it. | packages/mongoose/src/adapter.ts:64 |
