Type alias CreateAccessTokenOptions

CreateAccessTokenOptions: {
    name: string;
    valid_until?: number;
}

Options for creating an access token.

Type declaration

  • name: string

    Unique name for the access token. Must be unique per user.

  • Optional valid_until?: number

    Unix timestamp (in seconds) indicating when the token expires. If not provided, token does not expire.

    Note: Only Unix timestamp (number) is accepted, not Date objects.