Page Contents
Home > @loopback/authentication > getAuthenticateMetadata
getAuthenticateMetadata() function
Fetch authentication metadata stored by @authenticate
decorator.
Signature:
export declare function getAuthenticateMetadata(targetClass: Constructor<{}>, methodName: string): AuthenticationMetadata[] | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
targetClass | Constructor<{}> | Target controller |
methodName | string | Target method |
Returns:
AuthenticationMetadata[] | undefined