mmq-auth
Overview
A Mimeeq Auth is a component for loading Mimeeq authentication on your app. After adding it in your DOM you can call trigger on it methods to display authorization forms in Mimeeq dialog.
Basic Usage
<mmq-auth short-code="SHORT_CODE" locale="en"></mmq-auth>
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
accentColor | accent-color | Custom accent color | string | undefined |
accentTextColor | accent-text-color | Custom text color on controls with accent color as background | string | undefined |
backgroundColor | background-color | Custom background color | string | undefined |
locale | locale | Locale code | string | 'en' |
preserveFont | preserve-font | If true , inherit font family from website | boolean | undefined |
shortCode | short-code | Embed shortcode | string | undefined |
Events
Event | Description | Type |
---|---|---|
mimeeq-auth-loaded | Event emitted after embed with current short code was loaded | CustomEvent<any> |
mimeeq-login-success | Event emitted after successful sign up | CustomEvent<UserData> |
Methods
mountForgotPassword() => Promise<void>
Render forgot password form in Mimeeq modal
Returns
Type: Promise<void>
mountLogin() => Promise<void>
Render sign in form in Mimeeq modal
Returns
Type: Promise<void>
mountUserProfile() => Promise<void>
Render current user information in Mimeeq modal. It also allows for edit of this information. Available only after sign in.
Returns
Type: Promise<void>