IDMax Button Creator SDK
Overview
The IDMax Button Creator
is a JavaScript utility designed to dynamically generate and manage authentication buttons for various identity providers. It facilitates the integration of identity verification services, allowing customizable options for both appearance and behavior.
Constructor Options
Option | Type | Description | Example |
---|---|---|---|
providers | Array of strings | List of identity provider keys for which buttons will be created. See full list below. |
|
method | String | Determines the method of interaction, such as modal popups. |
|
settings | Object | Additional settings for providers, controlling UI elements. | See Settings Details Below |
styles | Object | CSS styles for buttons and modal overlays. | See Styles Details Below |
onComplete | Function | Callback when an operation completes successfully. |
|
onError | Function | Callback invoked when an error occurs. |
|
onClose | Function | Callback when a modal or a session is explicitly closed. |
|
onInit | Function | Callback when a provider is initialized. |
|
targetElement | HTMLElement | DOM element where the buttons should be rendered. |
Settings Details
Key | Sub-Key | Type | Description | Example |
---|---|---|---|---|
digital_id_connect | showWorksWith | Boolean | Controls whether to display associated partners or additional UI elements. |
|
Styles Details
Buttons
Key | Type | Description | Example |
---|---|---|---|
radius | String | CSS value for border-radius of the buttons, must include units. |
|
gap | String | Vertical gap between buttons, must include units. |
|
Modal
Overlay
Key | Type | Description | Example |
---|---|---|---|
color | String | Background color of the modal overlay, accepts CSS color formats. |
|
backgroundOpacity | Float | Opacity level of the modal overlay background, from 0.0 to 1.0. |
|
blur | Integer | Blur amount for the overlay, specified in pixels. |
|
Content
Key | Type | Description | Example |
---|---|---|---|
borderRadius | String | CSS value for border-radius of the modal content, must include units. |
|
Provider Descriptions
Provider | Description |
---|---|
clear | Provides identity verification services using CLEAR systems. |
plaid | Specializes in securely connecting financial accounts for identity verification. |
mdl_la | State-specific ID verification using Louisiana's digital driver's licenses. |
digital_id_connect | General digital identity verification provider. |
one_id | Provides banking-based identity verification services. |
digilocker | An Indian digital locker for securely storing and sharing personal documents. |
Usage Examples
React Integration
Vanilla JavaScript Integration
Last updated