BaasAuth class

Properties

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

Methods

clearUserRole() → Future<void>
debugPrintAllStoredData() → Future<void>
getSavedToken() → Future<String?>
getSavedUserId() → Future<String?>
getTenantId() → Future<String?>
Get tenant ID from environment or saved session
getTenantRoles() → Future<List<Map<String, dynamic>>>
getUserRole() → Future<String?>
graphQL({required String query, Map<String, dynamic>? variables}) → Future<Map<String, dynamic>>
isUserLoggedIn() → Future<bool>
loginUser(String phone, String otp) → Future<Map<String, dynamic>>
logout() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerUser({required String phoneNumber, required String otp, String? tenantRoleID, String? firstName, String? lastName, String? location, String? username, String? email, String? password, String? language, String? idProofPath, String? profilePhotoPath, String? videoPath}) → Future<Map<String, dynamic>>
resendLoginOtp(String phone) → Future<Map<String, dynamic>>
resendRegistrationOTP({required String phoneNumber, required String productToken}) → Future<Map<String, dynamic>>
saveTenantId(String tenantId) → Future<void>
Save tenant ID for future use
saveUserRole(String role) → Future<void>
sendLoginOtp(String phone) → Future<Map<String, dynamic>>
sendRegistrationOtp(String phone) → Future<Map<String, dynamic>>
toString() → String
A string representation of this object.
inherited
verifyRegistrationOtp({required String phoneNumber, required String otp}) → Future<Map<String, dynamic>>

Operators

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

Static Properties

instance → BaasAuth
no setter

Static Methods

initialize({required BaasApi api, required String productToken}) → void