@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
35 lines (22 loc) • 1.11 kB
Markdown
lang: en
title: 'API docs: authentication.userservice.converttouserprofile'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/authentication
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 | U | The user returned from <code>verifyCredentials()</code> |
<b>Returns:</b>
[UserProfile](./security.userprofile.md)