Class: IssueTokenService
Implements
Constructors
new IssueTokenService()
new IssueTokenService(
jwtIssueService):IssueTokenService
Parameters
| Parameter | Type |
|---|---|
jwtIssueService | JwtIssueService |
Returns
Defined in
packages/nestjs-authentication/src/services/issue-token.service.ts:10 (opens in a new tab)
Properties
| Property | Modifier | Type |
|---|---|---|
jwtIssueService | readonly | JwtIssueService |
Methods
accessToken()
accessToken(...
args):Promise<string>
Generate access token for a payload.
Parameters
| Parameter | Type |
|---|---|
...args | [string | object | Buffer, JwtSignOptions] |
Returns
Promise<string>
Implementation of
IssueTokenServiceInterface.accessToken
Defined in
packages/nestjs-authentication/src/services/issue-token.service.ts:15 (opens in a new tab)
refreshToken()
refreshToken(...
args):Promise<string>
Generate refresh token for a payload.
Parameters
| Parameter | Type |
|---|---|
...args | [string | object | Buffer, JwtSignOptions] |
Returns
Promise<string>
Implementation of
IssueTokenServiceInterface.refreshToken
Defined in
packages/nestjs-authentication/src/services/issue-token.service.ts:22 (opens in a new tab)
responsePayload()
responsePayload(
id):Promise<AuthenticationResponseInterface>
Generate the response payload.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | user id or name for sub claim |
Returns
Promise<AuthenticationResponseInterface>
Implementation of
IssueTokenServiceInterface.responsePayload
Defined in
packages/nestjs-authentication/src/services/issue-token.service.ts:31 (opens in a new tab)