Retrieval Options
To identify the authenticated entity and determine its authorization to access the resource, you must provide two mandatory configuration, in addition to a third optional one.
extractUser: (request: Request) => { roles: string[]} | Promise<{ roles: string[] }>;role: {
fetch: (roles: string[], ...args: any[]) => IRole[] | Promise<IRole[]>;
inject?: InjectionToken[];
};exceptionFactory?: (permissions: string[],context: ExecutionContext) => HttpException;Last updated