Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 3.93 KB

authtoken.md

File metadata and controls

32 lines (26 loc) · 3.93 KB

AuthToken

Authentication token metadata.

Example Usage

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

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

Fields

Field Type Required Description Example
id string ✔️ The unique identifier of the token. 5d9f2ebd38ddca62e5d51e9c1704c72530bdc8bfdd41e782a6687c48399e8391
name string ✔️ The human-readable name of the token.
type string ✔️ The type of the token. oauth2-token
origin string The origin of how the token was created. github
scopes models.Scopes[] The access scopes granted to the token.
expiresAt number Timestamp (in milliseconds) of when the token expires. 1632816536002
activeAt number ✔️ Timestamp (in milliseconds) of when the token was most recently used. 1632816536002
createdAt number ✔️ Timestamp (in milliseconds) of when the token was created. 1632816536002