Web app
clc-app workspace, apps/web. PWA. Vite+.
vp install
vp dev apps/web # :3000
vp build
vp testNode version is .node-version in that repo.
Auth model
Public market is the default route. A connected wallet is not enough.
Authenticated ⇔ wagmi connected and GET /auth/session returns that same address.
| Client state | Meaning |
|---|---|
loading | reconnect / session in flight |
guest | no wallet |
connectedNoSession | wallet up, no matching cookie |
authenticated | wallet + session match |
sessionCheckError | 5xx / network. Do not demote mounted private UI |
Connectors:
private-key: paper wallet, SIWEcalibur-webauthn: passkey,POST /auth/webauthn/verify
Gnosis wiring
Point the app at:
https://gnosis-staging.cosmolocal.credit # API
https://gnosis-storage.cosmolocal.credit # uploadsChain ID 100. Calibur 0x48A910C8e9FF0b14051b78d0c96dB069E57f0729.
CORE_RELAYER__ALLOWED_ORIGINS on the API host must include the Pages hostname (https://app.gnosis.cosmolocal.credit, https://clc-app-gnosis.pages.dev, preview https://*.clc-app-gnosis.pages.dev).
Passkeys bind to CORE_RELAYER__RELYING_PARTY_ID (gnosis.cosmolocal.credit on staging).