method

App.CreateAuthUserForTransport

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

Apply the safe anonymous first-user default used by framework transports.

Source core/auth.go:150

@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.

This transport form permits one anonymous bootstrap only for the configured admin-user collection when no Create rule is authored.

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.