const data = await ctx.modules.tokens.create({
  // Request body
});

Public

No

Request

const data = await ctx.modules.tokens.create({
  // Request body
});

Request

Object containing the following properties:

PropertyType
type (*)string
meta (*)Record<string, string>
expireAtstring

(*) Required.

Response

Response

Object containing the following properties:

PropertyType
token (*)Object with properties:
  • token: string
  • id: string
  • type: string
  • meta: any (nullable)
  • createdAt: string
  • expireAt: string (nullable)
  • revokedAt: string (nullable)

(*) Required.