Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
146
func
(m *Manager) valid(token string) bool {
147
_, ok := m.sessions.GetUsername(token)
148
return
ok
149
}
150
151
func
bearerToken(header string) string {
152
const
prefix =
"Bearer "
Callers
2
Middleware
Method · 0.95
ValidateToken
Method · 0.95
Calls
1
GetUsername
Method · 0.65
Tested by
no test coverage detected