@myxtra/authentication-green 2.15.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 +3 -2
- package/dist/{App-DEBNfzli.js → App-ByREaqc2.js} +568 -536
- package/dist/{index-C6YE3hyL.js → index-BtxpGhGV.js} +2192 -2187
- package/dist/xtra-authentication.js +1 -1
- package/package.json +18 -18
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
|
-
//
|
|
216
|
+
// TO DO: add logic in case the user is not authenticated
|
|
216
217
|
return;
|
|
217
218
|
}
|
|
218
219
|
|
|
219
|
-
//
|
|
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);
|