tinybase_client 0.4.4
tinybase_client: ^0.4.4 copied to clipboard
Flutter SDK for the TinyBase backend: auth, JWT refresh, collection CRUD, file uploads, and realtime SSE.
0.4.4 #
- Version aligned with server/docs 0.4.4 (OAuth callback already accepts query tokens).
0.4.3 #
- Empty access tokens are ignored (
isAuthenticated, Bearer headers, prefs migration). downloadFileuses the same request timeout as JSON calls.
0.4.1 #
restore()/ refresh: logout only on 400/401/403 (keep session on 502/429).restore()shares the refresh lock with 401 retries.- SSE: UTF-8 decoder reassembles multi-byte characters across chunks.
SecureTokenStoremigrates legacy SharedPreferences tokens then clears them.
0.4.0 #
SecureTokenStore(Keystore / Keychain) as the default on mobile.restore()keeps the local session on network errors and timeouts.- Single in-flight refresh (lock) so concurrent 401s do not rotate twice.
- JSON and multipart requests time out (30s by default).
logout()revokes the refresh token on the server.deleteAccount(),forgotPassword(),resetPassword().- Account deletion also removes records owned by the user and their files.
0.3.2 #
- Point
documentationto the hosted Getting Started site.
0.3.1 #
TinyBaseCollection.downloadFile(Bearer + refresh retry).- SSE
subscribe()auto-reconnect with backoff. - OAuth callback: parse tokens from URI fragment (and query fallback).
0.3.0 #
register(..., fields: {...})for customusersprofile fields.updateMe(fields)viaPATCH /api/auth/me.TinyBaseUser.fieldsholds custom profile data from/me.
0.2.0 #
- File uploads via multipart on
create/update(FileUpload). TinyBaseCollection.fileUrlfor download URLs.- Realtime SSE:
TinyBaseCollection.subscribe()→Stream<RecordChange>. TinyBaseClient.meta()for public instance metadata (appName).
0.1.1 #
- Shorten pubspec description (pub points).
- Add dartdoc comments on the public API.
- Add
example/main.dart.
0.1.0 #
- Première publication sur pub.dev.
- Auth email/password + OAuth (Discord/Microsoft browser, Google/Apple native).
- Refresh JWT automatique sur 401.
- CRUD générique sur les collections.
SharedPreferencesTokenStore+InMemoryTokenStore.