Skip to main content

Class: TokenService

Constructors

constructor

new TokenService(__namedParameters)

Parameters

NameType
__namedParametersInjectedDependencies

Defined in

packages/medusa/src/services/token.ts:16

Properties

configModule_

Protected Readonly configModule_: ConfigModule

Defined in

packages/medusa/src/services/token.ts:14


RESOLUTION_KEY

Static RESOLUTION_KEY: string

Defined in

packages/medusa/src/services/token.ts:12

Methods

signToken

signToken(data, options?): string

Parameters

NameType
datastring | object | Buffer
options?SignOptions

Returns

string

Defined in

packages/medusa/src/services/token.ts:34


verifyToken

verifyToken(token, options?): string | Jwt | JwtPayload

Parameters

NameType
tokenstring
options?VerifyOptions

Returns

string | Jwt | JwtPayload

Defined in

packages/medusa/src/services/token.ts:20