Page Contents

Home > @loopback/authorization > authorize > scope

authorize.scope() function

Shortcut to specify access scopes

Signature:

scope: (...scopes: string[]) => (target: any, method?: string, methodDescriptor?: TypedPropertyDescriptor<any>) => any

Parameters

Parameter Type Description

scopes

string[]

Returns:

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