method

App.AuthBootstrapAvailable

Report whether one-time anonymous setup is available for the configured admin collection.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.

Returns

The declared result.

(bool, error)

How it works

Returns false for secondary auth collections, explicit Create policies, and initialized admin collections. The atomic create transaction remains authoritative if callers race.

Full signature

func (application *App) AuthBootstrapAvailable( ctx context.Context, collection string, ) (bool, error)

Source core/auth.go:121

Related types

  • App

    A resolved application bound to operation services.