MCPcopy Index your code
hub / github.com/syncthing/syncthing / IsValidAPIKey

Method IsValidAPIKey

lib/api/api_csrf.go:31–31  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

29
30type apiKeyValidator interface {
31 IsValidAPIKey(key string) bool
32}
33
34// Check for CSRF token on /rest/ URLs. If a correct one is not given, reject

Callers 1

hasValidAPIKeyHeaderFunction · 0.65

Implementers 1

GUIConfigurationlib/config/guiconfiguration.go

Calls

no outgoing calls

Tested by

no test coverage detected