Page Contents
Home > @loopback/authentication-jwt > RefreshtokenService > (constructor)
RefreshtokenService.(constructor)
Constructs a new instance of the RefreshtokenService class
Signature:
constructor(refreshSecret: string, refreshExpiresIn: string, refreshIssure: string, refreshTokenRepository: RefreshTokenRepository, userService: MyUserService, jwtService: TokenService);
Parameters
| Parameter | Type | Description |
|---|---|---|
| refreshSecret | string | |
| refreshExpiresIn | string | |
| refreshIssure | string | |
| refreshTokenRepository | [RefreshTokenRepository](/doc/en/lb4/apidocs.authentication-jwt.refreshtokenrepository.html) | |
| userService | [MyUserService](/doc/en/lb4/apidocs.authentication-jwt.myuserservice.html) | |
| jwtService | [TokenService](/doc/en/lb4/apidocs.authentication.tokenservice.html) |