@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
129 lines (61 loc) • 2.06 kB
Markdown
---
lang: en
title: 'API docs: authentication-jwt.refreshtokenservice._constructor_'
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.refreshtokenservice._constructor_.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication-jwt](./authentication-jwt.md) > [RefreshtokenService](./authentication-jwt.refreshtokenservice.md) > [(constructor)](./authentication-jwt.refreshtokenservice._constructor_.md)
## RefreshtokenService.(constructor)
Constructs a new instance of the `RefreshtokenService` class
**Signature:**
```typescript
constructor(refreshSecret: string, refreshExpiresIn: string, refreshIssure: string, refreshTokenRepository: RefreshTokenRepository, userService: MyUserService, jwtService: TokenService);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
refreshSecret
</td><td markdown="1">
string
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
refreshExpiresIn
</td><td markdown="1">
string
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
refreshIssure
</td><td markdown="1">
string
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
refreshTokenRepository
</td><td markdown="1">
[RefreshTokenRepository](./authentication-jwt.refreshtokenrepository.md)
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
userService
</td><td markdown="1">
[MyUserService](./authentication-jwt.myuserservice.md)
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
jwtService
</td><td markdown="1">
[TokenService](./authentication.tokenservice.md)
</td><td markdown="1">
</td></tr>
</tbody></table>