pub async fn key_store_has_live_rows(
pool: &Pool<Postgres>,
table: ApiKeyTable,
) -> Result<bool, Error>Expand description
SELECT EXISTS(SELECT 1 FROM <table> WHERE revoked_at IS NULL) — used by
ProviderBuilder::build() (rust/auth/src/default_provider.rs) to decide
whether a non-empty key store counts as “auth configured” on its own. A
missing relation (e.g. a schema that has not reached migration v5 yet)
surfaces as an Err here and must be propagated, never treated as “empty”.