method

App.CreateAuthUser

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

Create a content document and private credential atomically.

Source core/auth.go:134

@param ctx
The ctx value.
@param collection
The collection value.
@param values
The values value.
@param password
The password value.
@param actor
The actor value.
@param localeOptions
The localeOptions value.
@returns
The declared result.

Runs create access, field access, validation, hooks, transaction logic, password policy, and credential creation. The password never enters values or hooks.

Related types

  • App

    A resolved application bound to operation services.

  • Values

    A map of field names to typed values.

  • Document

    A stored document with status and version metadata.

  • LocaleOptions

    Locale selection for one single-document Local API operation.