MCPcopy
hub / github.com/ZenNotes/zennotes / subtleCompare

Function subtleCompare

apps/server/internal/httpserver/security.go:553–558  ·  view source on GitHub ↗
(left string, right string)

Source from the content-addressed store, hash-verified

551}
552
553func subtleCompare(left string, right string) bool {
554 if len(left) == 0 || len(right) == 0 {
555 return false
556 }
557 return subtle.ConstantTimeCompare([]byte(left), []byte(right)) == 1
558}

Callers 3

requireAuthMethod · 0.85
sessionLoginMethod · 0.85
sessionRotateTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected