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

Method PerformLoginTokenCreation

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

PerformLoginTokenCreation creates a new login token and associates it with the provided data.

(ctx context.Context, req *PerformLoginTokenCreationRequest, res *PerformLoginTokenCreationResponse)

Source from the content-addressed store, hash-verified

29type LoginTokenInternalAPI interface {
30 // PerformLoginTokenCreation creates a new login token and associates it with the provided data.
31 PerformLoginTokenCreation(ctx context.Context, req *PerformLoginTokenCreationRequest, res *PerformLoginTokenCreationResponse) error
32
33 // PerformLoginTokenDeletion ensures the token doesn't exist. Success
34 // is returned even if the token didn't exist, or was already deleted.

Callers 3

TestLoginTokenFunction · 0.65
addRoutesLoginTokenFunction · 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