@loopback/docs
Version:
Documentation for LoopBack 4
34 lines (21 loc) • 976 B
Markdown
lang: en
title: 'API docs: authentication.userservice.converttouserprofile'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.authentication.userservice.converttouserprofile.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication](./authentication.md) > [UserService](./authentication.userservice.md) > [convertToUserProfile](./authentication.userservice.converttouserprofile.md)
## UserService.convertToUserProfile() method
Convert the user returned by `verifyCredentials()` to a common user profile that describes a user in your application
<b>Signature:</b>
```typescript
convertToUserProfile(user: U): UserProfile;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| user | <code>U</code> | The user returned from <code>verifyCredentials()</code> |
<b>Returns:</b>
`UserProfile`