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](/doc/en/lb4/apidocs.context.constructor.html)<{}> | Target controller |
| methodName | string | Target method |
Returns:
AuthenticationMetadata[] | undefined