@eka-care/abha-stg 0.1.42 → 0.1.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -59,8 +59,8 @@ Add the following HTML and script tags to your webpage:
59
59
  data: {
60
60
  accessToken: "<your_access_token>", // Pass the access token you have
61
61
  oid: "<your_oid_if_available>", // Pass if you have the OID
62
- orgIcon: "<link_of_your_org_icon>", // Pass the cdn url to your organisation icon
63
- linkToOrgIcon: "<link_of_icon_to_link_abha_to_your_org>", // Pass the cdn url of an icon which depicts linking abha to your organisation
62
+ orgIcon: "<url_of_your_org_icon>", // Pass the url to your organisation icon which starts with for ex: https://cdn.eka.care/vagus/cl56w6zg3001f0scsaqrh16is.jpg
63
+ linkToOrgIcon: "<url_of_image_to_link_abha_to_your_org>", // Pass the url of an image which depicts linking abha to your organisation for ex https://cdn.eka.care/vagus/cm6agrs5000090tfwfz984x5b.webp
64
64
  },
65
65
 
66
66
  // Success callback
@@ -97,7 +97,7 @@ Initializes and renders the ABHA SDK in your specified container.
97
97
  | Name | Type | Required | Description |
98
98
  | ------------- | --------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
99
99
  | `containerId` | `string` | ✅ | The HTML element ID where the SDK will mount. |
100
- | `data` | `{ accessToken: string; oid?: string; orgIcon?: string; linkToOrgIcon?: string }` | ⚙️ Optional | Configuration data for initializing the ABHA flow. <br/>- accessToken: Pass the access token you have. <br/>- oid: Pass if available. <br/>- orgIcon: CDN URL of your organisation's icon to display inside the SDK. <br/>- linkToOrgIcon: CDN URL of the icon representing “Link ABHA to your organisation”. |
100
+ | `data` | `{ accessToken: string; oid?: string; orgIcon?: string; linkToOrgIcon?: string }` | ⚙️ Optional | Configuration data for initializing the ABHA flow. <br/>- accessToken: Pass the access token you have. <br/>- oid: Pass if available. <br/>- orgIcon: URL of your organisation's icon to display inside the SDK url should start with https://. <br/>- linkToOrgIcon: URL of the image representing “Link ABHA to your organisation url should start with https://. |
101
101
  | `onSuccess` | `(params: AbhaSuccessParams) => void` | ✅ | Triggered when the user successfully creates or logs in to ABHA. |
102
102
  | `onError` | `(params: AbhaErrorParams) => void` | ✅ | Triggered when an error occurs during the ABHA flow. |
103
103
 
@@ -109,8 +109,8 @@ window.initAbhaApp({
109
109
  data: {
110
110
  accessToken: "your_access_token_here",
111
111
  oid: "optional_oid_here",
112
- orgIcon: "link_of_your_org_icon",
113
- linkToOrgIcon: "link_of_icon_to_link_abha_to_your_org",
112
+ orgIcon: "url_of_your_org_icon",
113
+ linkToOrgIcon: "url_of_image_to_link_abha_to_your_org",
114
114
  },
115
115
  onSuccess: (params) => {
116
116
  console.log("ABHA created successfully!", params);
@@ -301,8 +301,8 @@ Ensure your container has sufficient space:
301
301
  data: {
302
302
  accessToken: "<your_access_token>",
303
303
  oid: "<your_oid_if_available>",
304
- orgIcon: "<link_of_your_org_icon>",
305
- linkToOrgIcon: "<link_of_icon_to_link_abha_to_your_org>",
304
+ orgIcon: "<url_of_your_org_icon>",
305
+ linkToOrgIcon: "<url_of_image_to_link_abha_to_your_org>",
306
306
  },
307
307
  onSuccess: (params) => {
308
308
  console.log("ABHA flow completed successfully:", params);