DartBridgeAuth class

Authentication bridge for C++ auth operations. Matches Swift's CppBridge+Auth.swift.

C++ handles:

  • Token expiry/refresh logic
  • JSON building for auth requests
  • Auth state management

Dart provides:

  • Synchronous platform-native secure storage callbacks
  • Token resolver hooks that defer retry/auth work back to commons

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearAuth() Future<void>
Auth request construction, HTTP POSTs, response parsing, and token refresh are owned by commons via rac_sdk_init_phase2_proto and rac_sdk_retry_http_proto. Dart only installs secure-storage callbacks and reads the resulting native auth state. Clear all auth state (in-memory + persisted via the secure-storage vtable installed at rac_auth_init). Delegates fully to the native auth manager — matches Swift CppBridge.State.clearAuth.
getAccessToken() String?
Get current access token
getDeviceId() String?
Get device ID
getOrganizationId() String?
Get organization ID
getUserId() String?
Get user ID
isAuthenticated() bool
Check if authenticated
needsRefresh() bool
Check if token needs refresh
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance DartBridgeAuth
final

Static Methods

initialize({required SDKEnvironment environment, String? baseURL}) Future<void>
Initialize auth manager with secure storage callbacks
reset() → void
Reset auth manager