ichibase 0.4.0
ichibase: ^0.4.0 copied to clipboard
Official Flutter client SDK for ichibase — Postgres, MongoDB, Auth, Storage and Realtime. Realtime auto-pauses in the background. Anon key only.
0.4.0 #
- 2-step verification on password login:
auth.verifyTwoFactor(email:, code:)andauth.verifyTwoFactorMagic(token).loginnow returnsIchibaseResponse<LoginResult>(was<Session>):result.sessionon a normal login, orresult.twofaRequired == true+result.twofaMethodswhen the project requires 2-step verification (a factor was emailed). Custom SMTP required. Breaking vs 0.3.0 — updatelogincall sites to readresult.session. - Code-based password reset:
auth.confirmPasswordResetOtp(email:, code:, newPassword:). - Example: handle the 2-step verification challenge on login; the Mongo screen
reads documents from the
docskey in find responses.
0.3.0 #
- Passwordless sign-in:
auth.signInWithOtp(email:),auth.verifyOtp(email:, code:), andauth.verifyMagicLink(token). Additive to email + password; the project must enable it (custom SMTP required). The two verify calls store the session and emitAuthEvent.signedIn, exactly likelogin.
0.2.0 #
- Automatic session persistence — no
storeneeded. The SDK now picks a durable default per platform (a file on mobile/desktop/server viadart:io,localStorageon web). Passstore:only to override. Ichibase.initialize(url, anonKey)+Ichibase.instance— initialize once at startup, then use the client anywhere with noBuildContext(Supabase-style).createClient(...)still available for local instances.- Example app updated to the singleton + a full feature tour.
0.1.0 #
- Initial release.
- Unified, anon-key-only client:
Ichibase.createClient(url, anonKey). - Postgres query builder (
from().select()/insert()/update()/delete(), filters, order/limit/range, single/maybeSingle/count) +rpc(). - Auth with session management + pluggable persistence (
SessionStore). - Storage (signed read/put URLs, upload, list, move, delete).
- Mongo document API (full op set,
asUser). - Realtime over WebSocket (postgres/mongo changes, broadcast, presence) with auto-reconnect.