MCPcopy Create free account
hub / github.com/cli/cli / RecordExpiringReceived

Method RecordExpiringReceived

pkg/cmd/auth/shared/telemetry.go:79–84  ·  view source on GitHub ↗

RecordExpiringReceived captures whether the server issued an expiring, refreshable token.

(received bool)

Source from the content-addressed store, hash-verified

77
78// RecordExpiringReceived captures whether the server issued an expiring, refreshable token.
79func (e *AuthTelemetryEvent) RecordExpiringReceived(received bool) {
80 if e == nil {
81 return
82 }
83 e.pendingEvent.UpsertDimensions(ghtelemetry.Dimensions{"expiring_received": fmt.Sprintf("%v", received)})
84}
85
86// RecordStorage captures where the credential was stored: keyring when a secure store was used, plaintext otherwise.
87func (e *AuthTelemetryEvent) RecordStorage(insecureStorageUsed bool) {

Callers 4

refreshRunFunction · 0.80
LoginFunction · 0.80

Calls 1

UpsertDimensionsMethod · 0.65

Tested by 2