UNPKG

@loopback/docs

Version:

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

91 lines (45 loc) 1.62 kB
--- lang: en title: 'API docs: authentication-passport.strategyadapter._constructor_' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/authentication-passport permalink: /doc/en/lb4/apidocs.authentication-passport.strategyadapter._constructor_.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/authentication-passport](./authentication-passport.md) &gt; [StrategyAdapter](./authentication-passport.strategyadapter.md) &gt; [(constructor)](./authentication-passport.strategyadapter._constructor_.md) ## StrategyAdapter.(constructor) Constructs a new instance of the `StrategyAdapter` class **Signature:** ```typescript constructor(strategy: Strategy, name: string, userProfileFactory?: UserProfileFactory<U>); ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> strategy </td><td markdown="1"> Strategy </td><td markdown="1"> instance of a class which implements a [passport-strategy](http://passportjs.org/)<!-- -->. </td></tr> <tr><td markdown="1"> name </td><td markdown="1"> string </td><td markdown="1"> </td></tr> <tr><td markdown="1"> userProfileFactory </td><td markdown="1"> [UserProfileFactory](./authentication.userprofilefactory.md)<!-- -->&lt;U&gt; </td><td markdown="1"> _(Optional)_ </td></tr> </tbody></table>