AuthToken

March 28, 2026 ยท View on GitHub

Authentication token metadata.

Example Usage

import { AuthToken } from "@vercel/sdk/models/authtoken.js";

let value: AuthToken = {
  id: "5d9f2ebd38ddca62e5d51e9c1704c72530bdc8bfdd41e782a6687c48399e8391",
  name: "<value>",
  type: "oauth2-token",
  prefix: "vcp_",
  suffix: "abc123",
  origin: "github",
  createdAt: 1632816536002,
  activeAt: 1632816536002,
  expiresAt: 1632816536002,
  revokedAt: 1632816536002,
  leakedAt: 1632816536002,
};

Fields

FieldTypeRequiredDescriptionExample
idstring:heavy_check_mark:The unique identifier of the token.5d9f2ebd38ddca62e5d51e9c1704c72530bdc8bfdd41e782a6687c48399e8391
namestring:heavy_check_mark:The human-readable name of the token.
typestring:heavy_check_mark:The type of the token.oauth2-token
prefixstring:heavy_minus_sign:The token's prefix, for identification purposes.vcp_
suffixstring:heavy_minus_sign:The last few characters of the token, for identification purposes.abc123
originstring:heavy_minus_sign:The origin of how the token was created.github
scopesmodels.Scopes[]:heavy_minus_sign:The access scopes granted to the token.
createdAtnumber:heavy_check_mark:Timestamp (in milliseconds) of when the token was created.1632816536002
activeAtnumber:heavy_check_mark:Timestamp (in milliseconds) of when the token was most recently used.1632816536002
expiresAtnumber:heavy_minus_sign:Timestamp (in milliseconds) of when the token expires.1632816536002
revokedAtnumber:heavy_minus_sign:Timestamp (in milliseconds) of when the token was revoked.1632816536002
leakedAtnumber:heavy_minus_sign:Timestamp (in milliseconds) of when the token was marked as leaked.1632816536002
leakedUrlstring:heavy_minus_sign:URL where the token was discovered as leaked.