type

APIKeyInfo

Safe metadata for an existing API key.

Properties

PropertyTypeDescription
IDstringThe stable revocable key identifier.
NamestringThe author-facing key label.
CreatedAttime.TimeWhen the key was created.
LastUsedAttime.TimeWhen the key was last accepted.
ExpiresAttime.TimeWhen the key expires, or the zero time when it does not.

Full signature

type APIKeyInfo struct { ID string Name string CreatedAt time.Time LastUsedAt time.Time ExpiresAt time.Time }

Source core/auth.go:72