Auth
Display Login form
mimeeqAuth.mountLogin()
warning
This method is deprecated. Please use mmq-auth component instead.
This function renders sign in form in Mimeeq dialog which handles full authentication flow out of the box.
Parameters
Name | Type | Default | Output | Description |
---|---|---|---|---|
onLoginSuccess | function | User object | Callback fired on successful sign in. | |
locale | string | en | Country Code |
Usage
mimeeqAuth.mountLogin({
onLoginSuccess: (res) => {
window.location.reload();
},
});
Sign in
mimeeqAuth.authorization.signIn()
You can use this method to log in programmatically using a fully custom UI.