Tokens

Fetch by Token

Get a token by its secret token.

Request

  • tokens
    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_by_token({
  // Request body
});