@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
33 lines (21 loc) • 1.11 kB
Markdown
lang: en
title: 'API docs: authentication-jwt.userrepository.findcredentials'
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.findcredentials.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) > [findCredentials](./authentication-jwt.userrepository.findcredentials.md)
## UserRepository.findCredentials() method
<b>Signature:</b>
```typescript
findCredentials(userId: typeof User.prototype.id): Promise<UserCredentials | undefined>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| userId | typeof [User.prototype.id](./authentication-jwt.user.id.md) | |
<b>Returns:</b>
Promise<[UserCredentials](./authentication-jwt.usercredentials.md) \| undefined>