Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ ActiveToken
Method
ActiveToken
api/http_client.go:23–23 ·
view source on GitHub ↗
(string)
Source
from the content-addressed store, hash-verified
21
// expiring token.
22
type
config
interface
{
23
ActiveToken(string) (string, string)
24
HostForAPIHost(string) (string, bool)
25
}
26
Callers
11
refreshRun
Function · 0.65
Test_refreshRun
Function · 0.65
ActiveTokenWithRefresh
Method · 0.65
getTokenReadOnly
Function · 0.65
AuthTokenWriteable
Function · 0.65
resolveCredential
Function · 0.65
hasNoToken
Function · 0.65
hasActiveToken
Function · 0.65
requireOAuthToken
Function · 0.65
getRun
Function · 0.65
AddAuthTokenHeader
Function · 0.65
Implementers
1
AuthConfig
internal/config/config.go
Calls
no outgoing calls
Tested by
4
Test_refreshRun
Function · 0.52
ActiveTokenWithRefresh
Method · 0.52
hasNoToken
Function · 0.52
hasActiveToken
Function · 0.52