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  
methodName string  

Returns:

AuthorizationMetadata | undefined