Skip to main content

User

Display User Profile modal

mimeeqAuth.mountUserProfile()

warning

This method is deprecated. Please use mmq-auth component instead.

This method display user details in Mimeeq modal, including password and other credential management.

Parameters

NameTypeDefaultDescription
localestringenCountry Code

Get current user data

mimeeqAuth.authorization.getUserData()

Use this method to get information about currently logged-in user. This is useful for reading current state of authentication or accessing current user details.

Usage

mimeeqAuth.authorization
.getUserData()
.then((user) => {
if (user) {
// logged in
console.log(user);
} else {
// logged out
}
})
.catch((err) => {
console.error(err);
});

Response

This method returns UserData object.