MCPcopy
hub / github.com/cli/cli / Authentication

Method Authentication

internal/gh/gh.go:67–67  ·  view source on GitHub ↗

Authentication provides persistent storage and modification of authentication configuration.

()

Source from the content-addressed store, hash-verified

65
66 // Authentication provides persistent storage and modification of authentication configuration.
67 Authentication() AuthConfig
68
69 // CacheDir returns the directory where the cacheable artifacts can be persisted.
70 CacheDir() string

Callers 15

listRunFunction · 0.95
listRunFunction · 0.95
Test_CheckAuthFunction · 0.65
CheckAuthFunction · 0.65
EnableRepoOverrideFunction · 0.65
ResolverMethod · 0.65
HttpClientFuncFunction · 0.65
loginFunction · 0.65
setupGitRunFunction · 0.65
NewCmdCredentialFunction · 0.65
TestSwitchRunFunction · 0.65
switchRunFunction · 0.65

Implementers 2

cfginternal/config/config.go
ConfigMockinternal/gh/mock/config.go

Calls

no outgoing calls

Tested by 14

Test_CheckAuthFunction · 0.52
loginFunction · 0.52
TestSwitchRunFunction · 0.52
Test_refreshRunFunction · 0.52
loginFunction · 0.52
Test_loginRun_nonttyFunction · 0.52
Test_loginRun_SurveyFunction · 0.52
loginFunction · 0.52
Test_logoutRun_ttyFunction · 0.52
Test_logoutRun_nonttyFunction · 0.52
hasNoTokenFunction · 0.52
hasActiveTokenFunction · 0.52