@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
34 lines (22 loc) • 1.14 kB
Markdown
lang: en
title: 'API docs: authentication.authenticationbindings.user_profile_factory'
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.authenticationbindings.user_profile_factory.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication](./authentication.md) > [AuthenticationBindings](./authentication.authenticationbindings.md) > [USER\_PROFILE\_FACTORY](./authentication.authenticationbindings.user_profile_factory.md)
## AuthenticationBindings.USER\_PROFILE\_FACTORY variable
Key used to bind a user profile factory to the context for any consumer to use when they need to convert a user object into a slimmer user profile object
<b>Signature:</b>
```typescript
USER_PROFILE_FACTORY: BindingKey<UserProfileFactory<any>>
```
## Example
```ts
server
.bind(AuthenticationBindings.USER_PROFILE_FACTORY)
.to(myUserProfileFactory);
```