Tokens

Fetch Token

Get a token by its ID.

Request

  • tokenIds
    array of strings

Response

  • tokens
    array of objects
    • tokens.id
      string
    • tokens.type
      string
    • tokens.meta
      any value
    • tokens.createdAt
      string
    • tokens.expireAt
      nullable string
    • tokens.revokedAt
      nullable string

Usage

1. Install the module

2. Use this script

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