API Reference
Rockets Core API
nestjs-authentication
classes
IssueTokenService

Class: IssueTokenService

Implements

Constructors

new IssueTokenService()

new IssueTokenService(jwtIssueService): IssueTokenService

Parameters

ParameterType
jwtIssueServiceJwtIssueService

Returns

IssueTokenService

Defined in

packages/nestjs-authentication/src/services/issue-token.service.ts:10 (opens in a new tab)

Properties

PropertyModifierType
jwtIssueServicereadonlyJwtIssueService

Methods

accessToken()

accessToken(...args): Promise<string>

Generate access token for a payload.

Parameters

ParameterType
...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

ParameterType
...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

ParameterTypeDescription
idstringuser 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)