|
|
7941e96f27
|
feat(auth): web3 wallet login (Sign-In-With-Ethereum)
- Add SIWE login to @settlekit/auth: requestWalletNonce + loginWithWallet on AuthService.
- web3.ts: viem-backed SIWE helpers (generateWalletNonce, buildSiweMessage, parseWalletMessage, offline EOA recoverWalletSigner) — no new external dep beyond viem (already in workspace).
- Single-use, address-bound, expiring nonce (replay-safe); nonce consumed only after the signature verifies.
- Account.walletAddress + WalletNonce types; optional findAccountByWallet/saveWalletNonce/consumeWalletNonce on AuthStore (non-breaking — PgAuthStore opts in later), implemented in InMemoryAuthStore.
- 6 tests: nonce issue/validation, login+account creation, returning account, replay rejection, expiry, wrong-signer rejection.
|
2026-06-20 23:57:15 +03:00 |
|
|
|
decf3ff96c
|
feat: full-product round 1 — auth, ui design system, closed persistence gaps
- packages/auth: real storage-agnostic auth (scrypt passwords, opaque sessions,
magic links, HMAC signed cookies, AuthStore + AuthService) on node:crypto.
- packages/ui: shared React 18 design system — theme.css tokens + Button/Card/
Table/Badge/StatCard/Nav/EmptyState/CopyButton/Money/etc + format helpers.
- persistence gaps closed: download_grants + agent_reputations tables, relaxed
saas_seats/agent_usage_events FKs (migration 0002, 52 tables); PgSeatStore,
PgAgentUsageStore, PgGrantStore, PgAgentReputationStore wired into context.
Verified: full build 0 TS errors; 591 tests pass; live Postgres boot + full
purchase->entitlement flow with the new context wiring.
|
2026-06-15 16:43:50 +03:00 |
|