method

App.AuthBootstrapAvailable

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

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

Source core/auth.go:117

@param ctx
The ctx value.
@param collection
The collection value.
@returns
The declared result.

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

Related types

  • App

    A resolved application bound to operation services.