MCPcopy Create free account
hub / github.com/diillson/chatcli / String

Method String

auth/types.go:164–183  ·  view source on GitHub ↗

String returns a redacted representation safe for logging/debugging.

()

Source from the content-addressed store, hash-verified

162
163// String returns a redacted representation safe for logging/debugging.
164func (c *AuthProfileCredential) String() string {
165 redacted := *c
166 if redacted.Access != "" {
167 redacted.Access = "[REDACTED]"
168 }
169 if redacted.Refresh != "" {
170 redacted.Refresh = "[REDACTED]"
171 }
172 if redacted.Key != "" {
173 redacted.Key = "[REDACTED]"
174 }
175 if redacted.Token != "" {
176 redacted.Token = "[REDACTED]"
177 }
178 data, err := json.MarshalIndent(&redacted, "", " ")
179 if err != nil {
180 return fmt.Sprintf("Credential{Provider:%s, error:%v}", c.Provider, err)
181 }
182 return string(data)
183}

Callers 9

syncClaudeCodeCredsFunction · 0.45
syncCodexCliCredsFunction · 0.45
RefreshOAuthFunction · 0.45
loadStoreUnlockedFunction · 0.45
saveStoreUnlockedFunction · 0.45
fetchAnthropicEmailFunction · 0.45
persistToStoreMethod · 0.45
backgroundLoopMethod · 0.45
LoginGitHubModelsPATFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected