Page Contents

Home > @loopback/authentication > TokenService > generateToken

TokenService.generateToken() method

Generates a token string based on a user profile

Signature:

generateToken(userProfile: UserProfile): Promise<string>;

Parameters

Parameter Type Description
userProfile UserProfile  

Returns:

Promise<string>