Page Contents

Home > @loopback/authentication-passport > StrategyAdapter > authenticate

StrategyAdapter.authenticate() method

The function to invoke the contained passport strategy. 1. Create an instance of the strategy 2. add success and failure state handlers 3. authenticate using the strategy

Signature:

authenticate(request: Request): Promise<UserProfile>;

Parameters

Parameter Type Description
request Request  

Returns:

Promise<UserProfile>