UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

65 lines (34 loc) 1.27 kB
--- 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) &gt; [@loopback/authentication](./authentication.md) &gt; [UserService](./authentication.userservice.md) &gt; [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 **Signature:** ```typescript convertToUserProfile(user: U): UserProfile; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> user </td><td markdown="1"> U </td><td markdown="1"> The user returned from `verifyCredentials()` </td></tr> </tbody></table> **Returns:** [UserProfile](./security.userprofile.md)