Skip to content

Interface: MongooseAdapterOptions ​

Defined in: packages/mongoose/src/adapter.ts:58

Options of new MongooseRbacAdapter(models, options).

Properties ​

PropertyTypeDescriptionDefined in
expiry?booleanStore 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

Released under the MIT License. Inspired by spatie/laravel-permission.