createConvexIdentityClient
Constructs a FRESH Convex client for identity-authenticated calls — the CONVEXCORE-16 seam the
admin app's editor bridge drives. Deliberately NOT the cached module client used by the
server-secret transports: an identity client carries a per-request operator bearer token via
setAuth, so sharing one instance across requests could leak a stale identity between
operators. Callers construct one per request, authenticate it (e.g. through
authenticateConvexClient in the admin app), and discard it.
Signature
function createConvexIdentityClient(): ConvexHttpClient;Returns
A new, unauthenticated ConvexHttpClient for this deployment.
Throws
CONVEX_URL nor NEXT_PUBLIC_CONVEX_URL
is set.Related
FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme
convexServerQuery
Calls a deployed Convex serverQuery function by path (e.g. db/shops:byDomain), injecting the shared serverSecret the servertrust constructor requires. This is t
deriveCatalog
Buckets into group → cluster → tokens, preserving declaration order at every level so the admin leftrail and cluster accordions render deterministically without