Skip to content

Interface: AttachLinkOptions ​

Defined in: packages/core/src/adapter.ts:47

Passed as the last argument of attachSubjectRoles / attachSubjectPermissions, only to adapters with supportsExpiry: true.

Properties ​

PropertyTypeDescriptionDefined in
expiresAtDate | nullWhen the links stop granting access (null = never). Written to every given link, including links the subject already holds: the latest call wins.packages/core/src/adapter.ts:52

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