Page Contents
Home > @loopback/authorization > Authorizer
Authorizer type
A function to decide if access to the target should be allowed or denied
Signature:
export type Authorizer<T extends AuthorizationMetadata = AuthorizationMetadata> =
(context: AuthorizationContext, metadata: T) => Promise<AuthorizationDecision>;
References: AuthorizationMetadata, AuthorizationContext, AuthorizationDecision