← All types
Ob Object

DeviceTokenState

An authentication token for a device

Fields

Unique identifier

Associated device ID

name

String!Non-null

Token name

Token description

Expiration timestamp (ISO8601)

Last used timestamp (ISO8601)

Whether the token has been revoked

Creation timestamp (ISO8601)

Last update timestamp (ISO8601)

Whether this token has a live mTLS certificate of its own — that is, whether revoking it would actually stop the device connecting. False for a token issued before certificates recorded the token that issued them, and for one whose certificate is already revoked; in the first case the device keeps connecting until it is deleted.

Referenced by (2)
Exact type SDL
"""An authentication token for a device"""
type DeviceTokenState {
  """Unique identifier"""
  id: DeviceTokenID!
  """Associated device ID"""
  deviceId: DeviceID!
  """Token name"""
  name: String!
  """Token description"""
  description: String
  """Expiration timestamp (ISO8601)"""
  expiresAt: ISO8601
  """Last used timestamp (ISO8601)"""
  lastUsedAt: ISO8601
  """Whether the token has been revoked"""
  isRevoked: Boolean!
  """Creation timestamp (ISO8601)"""
  createdAt: String!
  """Last update timestamp (ISO8601)"""
  updatedAt: String!
  """
  Whether this token has a live mTLS certificate of its own — that is, whether revoking it would actually stop the device connecting. False for a token issued before certificates recorded the token that issued them, and for one whose certificate is already revoked; in the first case the device keeps connecting until it is deleted.
  """
  hasLinkedCertificate: Boolean!
}