Page Contents

Home > @loopback/authentication > UserService > convertToUserProfile

UserService.convertToUserProfile() method

Convert the user returned by verifyCredentials() to a common user profile that describes a user in your application

Signature:

convertToUserProfile(user: U): UserProfile;

Parameters

Parameter Type Description
user U The user returned from verifyCredentials()

Returns:

UserProfile