@loopback/docs
Version:
Documentation for LoopBack 4
23 lines (15 loc) • 895 B
Markdown
---
lang: en
title: 'API docs: authentication.authenticationoptions.defaultmetadata'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.authentication.authenticationoptions.defaultmetadata.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication](./authentication.md) > [AuthenticationOptions](./authentication.authenticationoptions.md) > [defaultMetadata](./authentication.authenticationoptions.defaultmetadata.md)
## AuthenticationOptions.defaultMetadata property
Default authentication metadata if a method or class is not decorated with `@authenticate`<!-- -->. If not set, no default authentication will be enforced for those methods without authentication metadata.
<b>Signature:</b>
```typescript
defaultMetadata?: AuthenticationMetadata;
```