Page Contents

Home > @loopback/authorization > authorize > vote

authorize.vote() function

Shortcut to configure voters

Signature:

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

Parameters

Parameter Type Description

voters

(Authorizer | BindingAddress<Authorizer>)[]

Returns:

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