method

App.CreateAuthUser

CreateAuthUser creates an auth document and credential atomically while allowing a transport to populate the returned user safely.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
valuesstore.ValuesThe values value.
passwordstringThe password value.
optionsMutationOptionsThe options value.

Returns

The declared result.

(store.Document, error)

Full signature

func (application *App) CreateAuthUser( ctx context.Context, collection string, values store.Values, password string, options MutationOptions, ) (store.Document, error)

Source core/auth.go:138

Related types

  • App

    A resolved application bound to operation services.

  • Values

    A map of field names to typed values.

  • MutationOptions

    Authorization, optimistic concurrency, response population, create status, and locale controls for one write.

  • Document

    A stored document with status and version metadata.