@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
156 lines (73 loc) • 2.43 kB
Markdown
---
lang: en
title: 'API docs: authentication-jwt.myuserservice'
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.myuserservice.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication-jwt](./authentication-jwt.md) > [MyUserService](./authentication-jwt.myuserservice.md)
## MyUserService class
**Signature:**
```typescript
export declare class MyUserService implements UserService<User, Credentials>
```
**Implements:** [UserService](./authentication.userservice.md)<!-- --><[User](./authentication-jwt.user.md)<!-- -->, [Credentials](./authentication-jwt.credentials.md)<!-- -->>
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[(constructor)(userRepository)](./authentication-jwt.myuserservice._constructor_.md)
</td><td markdown="1">
</td><td markdown="1">
Constructs a new instance of the `MyUserService` 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">
[userRepository](./authentication-jwt.myuserservice.userrepository.md)
</td><td markdown="1">
</td><td markdown="1">
[UserRepository](./authentication-jwt.userrepository.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">
[convertToUserProfile(user)](./authentication-jwt.myuserservice.converttouserprofile.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[findUserById(id)](./authentication-jwt.myuserservice.finduserbyid.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[verifyCredentials(credentials)](./authentication-jwt.myuserservice.verifycredentials.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
</tbody></table>