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

Method Authentication

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

Authentication provides persistent storage and modification of authentication configuration.

()

Source from the content-addressed store, hash-verified

73
74 // Authentication provides persistent storage and modification of authentication configuration.
75 Authentication() AuthConfig
76
77 // CacheDir returns the directory where the cacheable artifacts can be persisted.
78 CacheDir() string

Callers 15

listRunFunction · 0.95
listRunFunction · 0.95
MainFunction · 0.95
Test_CheckAuthFunction · 0.65
CheckAuthFunction · 0.65
EnableRepoOverrideFunction · 0.65
ResolverMethod · 0.65
HttpClientFuncFunction · 0.65
configWithTokenRefresherFunction · 0.65
loginFunction · 0.65
setupGitRunFunction · 0.65
NewCmdCredentialFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 15

Test_CheckAuthFunction · 0.52
loginFunction · 0.52
TestSwitchRunFunction · 0.52
Test_refreshRunFunction · 0.52
AuthenticationMethod · 0.52
loginFunction · 0.52
setRefresherFunction · 0.52
Test_loginRun_nonttyFunction · 0.52