cloudbase_flutter 1.2.1 copy "cloudbase_flutter: ^1.2.1" to clipboard
cloudbase_flutter: ^1.2.1 copied to clipboard

Tencent CloudBase Flutter SDK for authentication, cloud functions, cloud run, and API gateway integration.

1.2.1 #

  • Fix HTTP interceptor attaching expired AccessToken to unauthenticated auth endpoints (refresh /auth/v1/token and anonymous sign-in /auth/v1/signin/anonymously), which caused the gateway to reject token refresh and re-login
  • Skip Authorization on a maintained list of public auth APIs (sign-in/sign-up, OTP, OAuth token exchange, captcha, revoke, etc.); protected endpoints such as /auth/v1/user/me still send the session token

1.2.0 #

  • Add NoSQL Database module (CloudBaseDatabase) with JS-SDK-style chainable API
    • db.collection().doc() document references
    • Chainable query: where / orderBy / limit / skip / field
    • CRUD: add (single & batch), get, count, update, set, remove
    • Query/update commands via db.command: comparison (eq/gt/gte/lt/lte/neq/in/nin), logic (and/or/not/nor), update operators (set/inc/mul/remove/push/pull/pop/shift/unshift/addToSet/rename/max/min)
    • Aggregation pipeline via collection().aggregate()...end()
    • Transactions via db.startTransaction() with commit / rollback
    • Geo types (GeoPoint/GeoLineString/GeoPolygon/GeoMultiPoint/GeoMultiLineString/GeoMultiPolygon) and geo queries
    • RegExp, serverDate helpers and automatic EJSON encode/decode (e.g. DateTime)
    • Raw MongoDB commands via runCommands

1.1.0 #

  • Add Cloud Storage module (CloudBaseStorage)
    • Upload files to cloud storage with upload info and direct COS upload
    • Get signed download URLs (single and batch)
    • Delete files (batch)
    • Copy files (single and batch)
    • Move/rename files
    • Get upload info for client-side direct upload

1.0.9 #

  • Add X-SDK-Version header (@cloudbase/flutter-sdk/<version>) to all HTTP requests for platform identification
  • Add version management tooling (tool/update_version.dart) to auto-sync version from pubspec.yaml
  • Add CONTRIBUTING.md with release workflow documentation
  • Improve HTTP client to support List request body (for storage APIs)

1.0.8 #

  • Fix UserProfile.toUser() incorrectly falling back to username (phone number) when email is null, which caused reauthentication to send an invalid email format to the server
  • Fix reauthenticate() to properly distinguish between empty string and valid email, ensuring phone-only users use phone number for verification instead of invalid email

1.0.7 #

  • Add shouldCreateUser option to signInWithOtp for auto-registration when user does not exist
  • Refactor internal signup logic into reusable _signUpAndSaveSession method

1.0.6 #

  • Add MySQL module (CloudBaseMySQL)
    • Direct SQL query execution
    • Transaction support (begin, commit, rollback)
    • Database/table management operations
  • Add example code for MySQL modules
  • Add unit tests for MySQL modules

1.0.5 #

  • Add Data Model module (CloudBaseDataModel)
    • CRUD operations with filter, select, orderBy, expand support
    • Batch create/update/delete operations
    • Upsert support
    • Raw MySQL command execution
    • DataSource query APIs (aggregate list, detail, schema, table name)
  • Refactor HTTP client with token auto-refresh and improved documentation
  • Add example code for Data Model
  • Add unit tests for Data Model

1.0.4 #

  • Add example code

1.0.3 #

  • Update README documentation

1.0.2 #

  • Fix HTTP client not handling empty token string correctly

1.0.1 #

  • Improve README documentation with complete authentication API usage

1.0.0 #

  • Initial release
  • Authentication module (CloudBaseAuth)
    • Email/phone registration and sign-in
    • Password sign-in
    • OTP verification sign-in
    • OAuth third-party sign-in
    • IdToken sign-in
    • Custom ticket sign-in
    • Anonymous sign-in
    • Session management (get, refresh, set)
    • User information management
    • Identity provider binding/unbinding
    • Password reset
  • Cloud Functions module (CloudBaseFunctions)
    • Basic cloud function invocation
    • Function-based cloud run invocation
  • Cloud Run module (CloudBaseCloudRun)
    • HTTP methods support (GET/POST/PUT/DELETE)
    • Custom request headers
  • API Gateway module (CloudBaseApis)
    • Chained calls
    • Multiple HTTP methods support
  • Captcha module (CloudBaseCaptcha)
    • Image captcha
    • Custom captcha handler
    • Built-in captcha dialog
2
likes
160
points
627
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Tencent CloudBase Flutter SDK for authentication, cloud functions, cloud run, and API gateway integration.

Homepage

Topics

#cloudbase #tencent-cloud #authentication #serverless #cloud-functions

Funding

Consider supporting this project:

cloud.tencent.com

License

MIT (license)

Dependencies

dio, flutter, shared_preferences, uuid

More

Packages that depend on cloudbase_flutter