Page Contents
Home > @loopback/authorization > authorize > scope
authorize.scope() function
Shortcut to specify access scopes
Signature:
scope: (...scopes: string[]) => (target: any, method?: string | undefined, methodDescriptor?: TypedPropertyDescriptor<any> | undefined) => any
Parameters
Parameter | Type | Description |
---|---|---|
scopes | string[] |
Returns:
(target: any, method?: string | undefined, methodDescriptor?: TypedPropertyDescriptor<any> | undefined) => any