Page Contents

Home > @loopback/authorization > Authorizer

Authorizer type

A function to decide if access to the target should be allowed or denied

Signature:

export declare type Authorizer<T extends AuthorizationMetadata = AuthorizationMetadata> = 
(context: AuthorizationContext, metadata: T) => Promise<AuthorizationDecision>;