Type Alias: MountLogin()
MountLogin = (
payload
) =>Promise
<void
>
Displays a modal login dialog.
This method renders a complete login form with username and password fields, as well as links to forgot password functionality.
NOTE: This method is deprecated. Please use the unified mount
method instead,
or the <mmq-auth> web component for new implementations.
Parameters
payload
Returns
Promise
<void
>
Example
// Deprecated approach
window.mimeeqAuth.mountLogin({
uid: 'login-container',
customerId: 'customer123',
locale: 'en',
onLoginSuccess: (user) => {
console.log('User logged in successfully:', user);
}
});
// Recommended approach using mount
const mountRoot = await window.mimeeqAuth.mount({
CDNPath: 'https://cdn.example.com',
baseURL: 'https://api.example.com',
customerId: 'customer123',
node: document.getElementById('auth-container'),
uid: 'login-form'
});
mountRoot.render({
embedType: 'LOGIN',
onLoginSuccess: (user) => {
console.log('User logged in successfully:', user);
}
});
Deprecated
Please use the unified mount
method instead, or the <mmq-auth> web component