@myxtra/authentication-green 2.14.0-alpha.0 → 2.16.0

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
@@ -134,6 +134,7 @@ type Config = {
134
134
  url: string; // URL of the custom page
135
135
  icon: string; // Icon to show in front of the text (see disclaimer below)
136
136
  }>;
137
+ country?: 'BE' | 'FR'; // Show options of specific country (defaults to 'BE')
137
138
  };
138
139
  ```
139
140
 
@@ -212,11 +213,11 @@ const onMessage = (message: MessageEvent<XtraAuthenticationMessageEventData>) =>
212
213
  }
213
214
 
214
215
  if (!event.data.isAuthenticated) {
215
- // TODO: add logic in case the user is not authenticated
216
+ // TO DO: add logic in case the user is not authenticated
216
217
  return;
217
218
  }
218
219
 
219
- // TODO: add logic when the user is authenticated (window.xtra is set here)
220
+ // TO DO: add logic when the user is authenticated (window.xtra is set here)
220
221
  };
221
222
 
222
223
  window.addEventListener('message', onMessage);