MCPcopy Create free account
hub / github.com/boringproxy/boringproxy / Authorized

Method Authorized

auth.go:25–33  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

23}
24
25func (a *Auth) Authorized(token string) bool {
26 _, exists := a.db.GetTokenData(token)
27
28 if exists {
29 return true
30 }
31
32 return false
33}

Callers 1

handleLoginMethod · 0.80

Calls 1

GetTokenDataMethod · 0.80

Tested by

no test coverage detected