Class: TokenService
Constructors
constructor
• new TokenService(__namedParameters
)
Parameters
Name | Type |
---|---|
__namedParameters | InjectedDependencies |
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 | Type |
---|---|
data | string | object | Buffer |
options? | SignOptions |
Returns
string
Defined in
medusa/src/services/token.ts:34
verifyToken
▸ verifyToken(token
, options?
): string
| Jwt
| JwtPayload
Parameters
Name | Type |
---|---|
token | string |
options? | VerifyOptions |
Returns
string
| Jwt
| JwtPayload
Defined in
Was this page helpful?