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

Method QueryLoginToken

userapi/api/api_logintoken.go:39–39  ·  view source on GitHub ↗

QueryLoginToken returns the data associated with a login token. If the token is not valid, success is returned, but res.Data == nil.

(ctx context.Context, req *QueryLoginTokenRequest, res *QueryLoginTokenResponse)

Source from the content-addressed store, hash-verified

37 // QueryLoginToken returns the data associated with a login token. If
38 // the token is not valid, success is returned, but res.Data == nil.
39 QueryLoginToken(ctx context.Context, req *QueryLoginTokenRequest, res *QueryLoginTokenResponse) error
40}
41
42// LoginTokenData is the data that can be retrieved given a login token. This is

Callers 4

TestLoginTokenFunction · 0.65
addRoutesLoginTokenFunction · 0.65
QueryLoginTokenMethod · 0.65
LoginFromJSONMethod · 0.65

Implementers 4

UserInternalAPIuserapi/internal/api.go
httpUserInternalAPIuserapi/inthttp/client.go
UserInternalAPITraceuserapi/api/api_trace.go
fakeUserInternalAPIclientapi/auth/login_test.go

Calls

no outgoing calls

Tested by 1

TestLoginTokenFunction · 0.52