MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / valid

Method valid

internal/auth/auth.go:146–149  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

144}
145
146func (m *Manager) valid(token string) bool {
147 _, ok := m.sessions.GetUsername(token)
148 return ok
149}
150
151func bearerToken(header string) string {
152 const prefix = "Bearer "

Callers 2

MiddlewareMethod · 0.95
ValidateTokenMethod · 0.95

Calls 1

GetUsernameMethod · 0.65

Tested by

no test coverage detected