@loopback/docs
Version:
Documentation for LoopBack 4
34 lines (21 loc) • 900 B
Markdown
lang: en
title: 'API docs: authentication.authenticationbindings.strategy'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.authentication.authenticationbindings.strategy.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication](./authentication.md) > [AuthenticationBindings](./authentication.authenticationbindings.md) > [STRATEGY](./authentication.authenticationbindings.strategy.md)
## AuthenticationBindings.STRATEGY variable
Key used to bind an authentication strategy to the context for the authentication function to use.
<b>Signature:</b>
```typescript
STRATEGY: BindingKey<AuthenticationStrategy | undefined>
```
## Example
```ts
server
.bind(AuthenticationBindings.STRATEGY)
.toProvider(MyAuthenticationStrategy);
```