MCPcopy Create free account
hub / github.com/daodst/chat / AccountDatabase

Interface AccountDatabase

clientapi/auth/auth.go:42–46  ·  view source on GitHub ↗

AccountDatabase represents an account database.

Source from the content-addressed store, hash-verified

40
41// AccountDatabase represents an account database.
42type AccountDatabase interface {
43 // Look up the account matching the given localpart.
44 GetAccountByLocalpart(ctx context.Context, localpart string) (*api.Account, error)
45 GetAccountByPassword(ctx context.Context, localpart, password string) (*api.Account, error)
46}
47
48// VerifyUserFromRequest authenticates the HTTP request,
49// on success returns Device of the requester.

Callers 5

QueryAccessTokenMethod · 0.80
queryAppServiceTokenMethod · 0.80
QueryLoginTokenMethod · 0.80
LoginMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected