Skip to main content

Type Alias: MountUserProfile

MountUserProfile = (payload) => Promise<void>

Displays a modal dialog showing the user profile information.

This method renders the user profile interface where users can view their account details, including password and credential management. This is only accessible for authenticated users.

NOTE: This method is deprecated. Please use the unified mount method instead, or the <mmq-auth> web component for new implementations.

Parameters​

payload​

MountUserProfilePayload

Returns​

Promise<void>

Example​

// Deprecated approach
window.mimeeqAuth.mountUserProfile({
uid: 'user-profile-container',
customerId: 'customer123',
locale: 'en'
});

// 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: 'user-profile'
});

mountRoot.render({
embedType: 'USER_PROFILE'
});

Deprecated​

Please use the unified mount method instead, or the <mmq-auth> web component