Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
30
type
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
hasValidAPIKeyHeader
Function · 0.65
Implementers
1
GUIConfiguration
lib/config/guiconfiguration.go
Calls
no outgoing calls
Tested by
no test coverage detected