@loopback/docs
Version:
Documentation for LoopBack 4
33 lines (21 loc) • 983 B
Markdown
lang: en
title: 'API docs: authentication-jwt.myuserservice.converttouserprofile'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/extensions/authentication-jwt
permalink: /doc/en/lb4/apidocs.authentication-jwt.myuserservice.converttouserprofile.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication-jwt](./authentication-jwt.md) > [MyUserService](./authentication-jwt.myuserservice.md) > [convertToUserProfile](./authentication-jwt.myuserservice.converttouserprofile.md)
## MyUserService.convertToUserProfile() method
<b>Signature:</b>
```typescript
convertToUserProfile(user: User): UserProfile;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| user | [User](./authentication-jwt.user.md) | |
<b>Returns:</b>
[UserProfile](./security.userprofile.md)