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

Method CreateAuth

auth.go:88–88  ·  view source on GitHub ↗

Creates a new authentication object If a User is attached to auth, then the auth object is linked to an existing user. Otherwise a new user object is created. On success, the auth.ID is set to the new authentication ID.

(ctx context.Context, auth *Auth)

Source from the content-addressed store, hash-verified

86 //
87 // On success, the auth.ID is set to the new authentication ID.
88 CreateAuth(ctx context.Context, auth *Auth) error
89
90 // Permanently deletes an authentication object from the system by ID.
91 // The parent user object is not removed.

Callers 3

MustCreateAuthFunction · 0.65

Implementers 2

AuthServicemock/auth.go
AuthServicesqlite/auth.go

Calls

no outgoing calls

Tested by 2

MustCreateAuthFunction · 0.52