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. |
|
name |
string | |
|
userProfileFactory |
(Optional) |