@loopback/docs
Version:
Documentation for LoopBack 4
35 lines (22 loc) • 1.01 kB
Markdown
lang: en
title: 'API docs: authentication.getauthenticatemetadata'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.authentication.getauthenticatemetadata.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication](./authentication.md) > [getAuthenticateMetadata](./authentication.getauthenticatemetadata.md)
## getAuthenticateMetadata() function
Fetch authentication metadata stored by `@authenticate` decorator.
<b>Signature:</b>
```typescript
export declare function getAuthenticateMetadata(controllerClass: Constructor<{}>, methodName: string): AuthenticationMetadata | undefined;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| controllerClass | <code>Constructor<{}></code> | Target controller |
| methodName | <code>string</code> | Target method |
<b>Returns:</b>
`AuthenticationMetadata | undefined`