payload-gatekeeper
Version:
The ultimate access control gatekeeper for Payload CMS v3 - Advanced RBAC with wildcard support, auto role assignment, and flexible configuration
7 lines • 370 B
TypeScript
/**
* Creates an afterRead hook that populates the user's role when the user is loaded
* This ensures the role object is always available when the user is fetched
* This runs after authentication and whenever the user document is read
*/
export declare const createAfterReadHook: () => ({ doc, req }: any) => Promise<any>;
//# sourceMappingURL=afterReadHook.d.ts.map