Page Contents
Home > @loopback/authentication-passport > StrategyAdapter > (constructor)
StrategyAdapter.(constructor)
Constructs a new instance of the StrategyAdapter class
Signature:
constructor(strategy: Strategy, name: string, userProfileFactory?: UserProfileFactory<U>);
Parameters
| Parameter | Type | Description |
|---|---|---|
| strategy | Strategy | instance of a class which implements a [passport-strategy](http://passportjs.org/). |
| name | string | |
| userProfileFactory | [UserProfileFactory](/doc/en/lb4/apidocs.authentication.userprofilefactory.html)<U> | _(Optional)_ |