method

App.AuthInitialized

Report whether an auth collection has any active account.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.

Returns

The declared result.

(initialized bool, err error)

How it works

Used for the one-time first-user bootstrap flow. It is not a general user-count API.

Full signature

func (application *App) AuthInitialized( ctx context.Context, collection string, ) (initialized bool, err error)

Source core/auth.go:92

Related types

  • App

    A resolved application bound to operation services.