Files
medusa-store/www/apps/docs/content/references/services/classes/TokenService.md
github-actions[bot] aa2bb7a31b chore(docs): Generated References (#5516)
Generated the following references:
- `js-client`
- `pricing`
- `services`

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-11-02 09:16:47 +00:00

1.5 KiB

TokenService

Constructors

constructor

new TokenService(«destructured»)

Parameters

Name
«destructured»

Defined in

medusa/src/services/token.ts:16

Properties

configModule_

Protected Readonly configModule_: ConfigModule

Defined in

medusa/src/services/token.ts:14


RESOLUTION_KEY

Static RESOLUTION_KEY: string

Defined in

medusa/src/services/token.ts:12

Methods

signToken

signToken(data, options?): string

Parameters

Name
data
options?

Returns

string

-string: (optional)

Defined in

medusa/src/services/token.ts:34


verifyToken

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

Parameters

Name
token
options?

Returns

string | Jwt | JwtPayload

-string \| Jwt \| JwtPayload: (optional)

Defined in

medusa/src/services/token.ts:20