Page Contents

Home > @loopback/authorization > authorize > vote

authorize.vote() function

Shortcut to configure voters

Signature:

vote: (...voters: (Authorizer | BindingAddress<Authorizer>)[]) => (target: any, method?: string | undefined, methodDescriptor?: TypedPropertyDescriptor<any> | undefined) => any

Parameters

Parameter Type Description
voters (Authorizer | BindingAddress<Authorizer>)[]  

Returns:

(target: any, method?: string | undefined, methodDescriptor?: TypedPropertyDescriptor<any> | undefined) => any