Page Contents

Home > @loopback/authentication > AuthenticationOptions > defaultMetadata

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.

Signature:

defaultMetadata?: AuthenticationMetadata;