MBAuth class Null safety

The main class to handle MBurger authorization




hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

authenticateUser(String email, String password) Future<void>
Authenticate a user with email and password. [...]
authenticateUserWithSocial(String token, MBAuthSocialLoginType loginType, {String? name, String? surname, List<MBAuthContractAcceptanceParameter>? contracts}) Future<void>
Authenticate a user with social. [...]
changePassword(String oldPassword, String newPassword) Future<void>
Change the password of the current logged in user. [...]
deleteProfile() Future<void>
Deletes the profile for the current logged in user. [...]
forgotPassword(String email) Future<void>
Password reset, an email is sent to the user with the instructions to re-set the password. [...]
getUserProfile() Future<MBUser>
Returns the profile of the current user. [...]
logoutCurrentUser() Future<void>
Logs out the current user. [...]
registerUser(String name, String surname, String email, String password, {String? phone, Uint8List? image, List<MBAuthContractAcceptanceParameter>? contracts, Map<String, dynamic>? data}) Future<void>
Registers a user to MBurger. [...]
updateUser({String? name, String? surname, String? phone, Uint8List? image, Map<String, dynamic>? data, List<MBAuthContractAcceptanceParameter>? contracts}) Future<MBUser>
Updates user information, only data that are passed to this function are changed, the fields not passed will remain untouched. [...]
userLoggedIn() Future<bool>
If the user is logged in. [...]
userToken() Future<String?>
The token of the user. [...]