@loopback/docs
Version:
Documentation for LoopBack 4
33 lines (22 loc) • 1.21 kB
Markdown
---
lang: en
title: 'API docs: authentication-passport.strategyadapter._constructor_'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/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) > [@loopback/authentication-passport](./authentication-passport.md) > [StrategyAdapter](./authentication-passport.strategyadapter.md) > [(constructor)](./authentication-passport.strategyadapter._constructor_.md)
## StrategyAdapter.(constructor)
Constructs a new instance of the `StrategyAdapter` class
<b>Signature:</b>
```typescript
constructor(strategy: Strategy, name: string, userProfileFactory?: UserProfileFactory<U>);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| strategy | <code>Strategy</code> | instance of a class which implements a [passport-strategy](http://passportjs.org/)<!-- -->. |
| name | <code>string</code> | |
| userProfileFactory | <code>UserProfileFactory<U></code> | |