Class: JwtSignService
Implements
JwtSignServiceInterface
Constructors
new JwtSignService()
new JwtSignService(
jwtAccessService
,jwtRefreshService
):JwtSignService
Parameters
Parameter | Type |
---|---|
jwtAccessService | JwtService |
jwtRefreshService | JwtService |
Returns
Defined in
packages/nestjs-jwt/src/services/jwt-sign.service.ts:12 (opens in a new tab)
Properties
Property | Modifier | Type |
---|---|---|
jwtAccessService | readonly | JwtService |
jwtRefreshService | readonly | JwtService |
Methods
decode()
decode(
tokenType
, ...rest
):null
|string
|object
Parameters
Parameter | Type |
---|---|
tokenType | JwtTokenType |
...rest | [string , DecodeOptions ] |
Returns
null
| string
| object
Implementation of
JwtSignServiceInterface.decode
Defined in
packages/nestjs-jwt/src/services/jwt-sign.service.ts:33 (opens in a new tab)
signAsync()
signAsync(
tokenType
, ...rest
):Promise
<string
>
Parameters
Parameter | Type |
---|---|
tokenType | JwtTokenType |
...rest | [string | object | Buffer , JwtSignOptions ] |
Returns
Promise
<string
>
Implementation of
JwtSignServiceInterface.signAsync
Defined in
packages/nestjs-jwt/src/services/jwt-sign.service.ts:19 (opens in a new tab)
verifyAsync()
verifyAsync(
tokenType
, ...rest
):Promise
<any
>
Parameters
Parameter | Type |
---|---|
tokenType | JwtTokenType |
...rest | [string , JwtVerifyOptions ] |
Returns
Promise
<any
>
Implementation of
JwtSignServiceInterface.verifyAsync
Defined in
packages/nestjs-jwt/src/services/jwt-sign.service.ts:26 (opens in a new tab)