SuperTokens · Schema

Token

A token object with value and expiry

AuthenticationOpen SourceSession ManagementSocial LoginPasswordlessIdentityAuthorizationMulti-TenancyNode.jsSelf-Hosted

Properties

Name Type Description
token string
expiry integer Token expiry timestamp in milliseconds
createdTime integer
View JSON Schema on GitHub

JSON Schema

supertokens-token-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Token",
  "title": "Token",
  "type": "object",
  "description": "A token object with value and expiry",
  "properties": {
    "token": {
      "type": "string"
    },
    "expiry": {
      "type": "integer",
      "description": "Token expiry timestamp in milliseconds"
    },
    "createdTime": {
      "type": "integer"
    }
  }
}