UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

35 lines (22 loc) 1.07 kB
--- lang: en title: 'API docs: authentication.authenticationbindings.strategy' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/strongloop/loopback-next/tree/master/packages/authentication permalink: /doc/en/lb4/apidocs.authentication.authenticationbindings.strategy.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/authentication](./authentication.md) &gt; [AuthenticationBindings](./authentication.authenticationbindings.md) &gt; [STRATEGY](./authentication.authenticationbindings.strategy.md) ## AuthenticationBindings.STRATEGY variable Key used to bind an authentication strategy or multiple strategies to the context for the authentication function to use. <b>Signature:</b> ```typescript STRATEGY: BindingKey<AuthenticationStrategy | AuthenticationStrategy[] | undefined> ``` ## Example ```ts server .bind(AuthenticationBindings.STRATEGY) .toProvider(MyAuthenticationStrategy); ```