Home > @cerbos/core > ClientWithPrincipal > checkResource
Check the principal's permissions on a resource. See Client.checkResource() for details.
Signature:
checkResource(request: Omit<CheckResourceRequest, "principal">, options?: RequestOptions): Promise<CheckResourcesResult>;
Parameter |
Type |
Description |
---|---|---|
request |
Omit<CheckResourceRequest, "principal"> | |
options |
(Optional) |
Returns:
Promise<CheckResourcesResult>