@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
153 lines (72 loc) • 2.65 kB
Markdown
---
lang: en
title: 'API docs: authentication-jwt.userrepository'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/authentication-jwt
permalink: /doc/en/lb4/apidocs.authentication-jwt.userrepository.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication-jwt](./authentication-jwt.md) > [UserRepository](./authentication-jwt.userrepository.md)
## UserRepository class
**Signature:**
```typescript
export declare class UserRepository extends DefaultCrudRepository<User, typeof User.prototype.id, UserRelations>
```
**Extends:** DefaultCrudRepository<[User](./authentication-jwt.user.md)<!-- -->, typeof [User.prototype.id](./authentication-jwt.user.id.md)<!-- -->, [UserRelations](./authentication-jwt.userrelations.md)<!-- -->>
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[(constructor)(dataSource, userCredentialsRepositoryGetter)](./authentication-jwt.userrepository._constructor_.md)
</td><td markdown="1">
</td><td markdown="1">
Constructs a new instance of the `UserRepository` class
</td></tr>
</tbody></table>
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[userCredentials](./authentication-jwt.userrepository.usercredentials.md)
</td><td markdown="1">
`readonly`
</td><td markdown="1">
HasOneRepositoryFactory<[UserCredentials](./authentication-jwt.usercredentials.md)<!-- -->, typeof [User.prototype.id](./authentication-jwt.user.id.md)<!-- -->>
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[userCredentialsRepositoryGetter](./authentication-jwt.userrepository.usercredentialsrepositorygetter.md)
</td><td markdown="1">
`protected`
</td><td markdown="1">
Getter<[UserCredentialsRepository](./authentication-jwt.usercredentialsrepository.md)<!-- -->>
</td><td markdown="1">
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[findCredentials(userId)](./authentication-jwt.userrepository.findcredentials.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
</tbody></table>