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
Was this section helpful?