Page Contents

Home > @loopback/authorization > getAuthorizationMetadata

getAuthorizationMetadata() function

Fetch authorization metadata stored by @authorize decorator.

Signature:

export declare function getAuthorizationMetadata(target: object, methodName: string): AuthorizationMetadata | undefined;

Parameters

Parameter Type Description
target object Target object/class
methodName string Target method

Returns:

AuthorizationMetadata | undefined