MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / IsTokenAuth

Method IsTokenAuth

pkg/api/auth.go:392–394  ·  view source on GitHub ↗

IsTokenAuth returns true if the authentication manager is configured for API token authentication. This method helps distinguish between password-based and token-based authentication modes, which can be useful for conditional logic or debugging. Returns true for API token authentication, false for

()

Source from the content-addressed store, hash-verified

390// log.Println("Using password authentication")
391// }
392func (am *AuthManager) IsTokenAuth() bool {
393 return am.token != ""
394}

Callers 4

IsUsingTokenAuthMethod · 0.80

Calls

no outgoing calls

Tested by 3