method
App.AuthInitialized
Report whether an auth collection has any active account.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The 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)Related types
AppA resolved application bound to operation services.