Page Contents

Home > @loopback/authorization > authorize > vote

authorize.vote variable

Shortcut to configure voters

Signature:

vote: (...voters: (string | Authorizer<AuthorizationMetadata> | import("@loopback/context").BindingKey<Authorizer<AuthorizationMetadata>>)[]) => (target: any, method?: string | undefined, methodDescriptor?: TypedPropertyDescriptor<any> | undefined) => any