MCPcopy Index your code
hub / github.com/github/github-mcp-server / HasToken

Method HasToken

internal/oauth/manager.go:126–128  ·  view source on GitHub ↗

HasToken reports whether a valid token is currently available.

()

Source from the content-addressed store, hash-verified

124
125// HasToken reports whether a valid token is currently available.
126func (m *Manager) HasToken() bool {
127 return m.AccessToken() != ""
128}
129
130// Authenticate ensures the session is authorized.
131//

Callers

nothing calls this directly

Calls 1

AccessTokenMethod · 0.95

Tested by

no test coverage detected