MCPcopy
hub / github.com/benbjohnson/wtf / CreateUser

Method CreateUser

user.go:62–62  ·  view source on GitHub ↗

Creates a new user. This is only used for testing since users are typically created during the OAuth creation process in AuthService.CreateAuth().

(ctx context.Context, user *User)

Source from the content-addressed store, hash-verified

60 // Creates a new user. This is only used for testing since users are typically
61 // created during the OAuth creation process in AuthService.CreateAuth().
62 CreateUser(ctx context.Context, user *User) error
63
64 // Updates a user object. Returns EUNAUTHORIZED if current user is not
65 // the user that is being updated. Returns ENOTFOUND if user does not exist.

Callers 2

MustCreateUserFunction · 0.65
MustCreateUserFunction · 0.65

Implementers 2

UserServicemock/user.go
UserServicesqlite/user.go

Calls

no outgoing calls

Tested by 2

MustCreateUserFunction · 0.52
MustCreateUserFunction · 0.52