---
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) &gt; [@loopback/authentication](./authentication.md) &gt; [AuthenticationBindings](./authentication.authenticationbindings.md) &gt; [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);
```


