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

Method GetUsername

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

Source from the content-addressed store, hash-verified

18type SessionStore interface {
19 Create(token, username string) error
20 GetUsername(token string) (string, bool)
21 Delete(token string) error
22 DeleteAll() error
23}

Callers 3

HandleMeMethod · 0.65
validMethod · 0.65
GetUsernameByTokenMethod · 0.65

Implementers 2

memSessionStoreinternal/auth/auth_test.go
SessionStoreinternal/store/postgres/sessions.go

Calls

no outgoing calls

Tested by

no test coverage detected