RecordExpiringReceived captures whether the server issued an expiring, refreshable token.
(received bool)
| 77 | |
| 78 | // RecordExpiringReceived captures whether the server issued an expiring, refreshable token. |
| 79 | func (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. |
| 87 | func (e *AuthTelemetryEvent) RecordStorage(insecureStorageUsed bool) { |