Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/github/github-mcp-server
/ HasToken
Method
HasToken
internal/ghmcp/oauth.go:92–92 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
90
// manager to its branches would require standing up live GitHub flows.
91
type
oauthAuthenticator
interface
{
92
HasToken() bool
93
Authenticate(ctx context.Context, prompter oauth.Prompter) (*oauth.Outcome, error)
94
}
95
Callers
2
TestAuthenticateNoTokenInitially
Function · 0.65
createOAuthMiddleware
Function · 0.65
Implementers
2
Manager
internal/oauth/manager.go
fakeAuthenticator
internal/ghmcp/oauth_test.go
Calls
no outgoing calls
Tested by
1
TestAuthenticateNoTokenInitially
Function · 0.52