@schibsted/account-sdk-browser 5.1.1 → 5.2.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 +7 -8
- package/es5/global.js +12 -5
- package/es5/global.js.map +1 -1
- package/es5/global.min.js +1 -1
- package/es5/global.min.js.map +1 -1
- package/es5/identity.js +12 -5
- package/es5/identity.js.map +1 -1
- package/es5/identity.min.js +1 -1
- package/es5/identity.min.js.map +1 -1
- package/es5/index.js +12 -5
- package/es5/index.js.map +1 -1
- package/es5/index.min.js +1 -1
- package/es5/index.min.js.map +1 -1
- package/es5/monetization.js +1 -1
- package/es5/monetization.js.map +1 -1
- package/es5/monetization.min.js +1 -1
- package/es5/monetization.min.js.map +1 -1
- package/package.json +1 -1
- package/src/identity.d.ts +11 -1
- package/src/identity.js +8 -3
- package/src/version.js +1 -1
package/package.json
CHANGED
package/src/identity.d.ts
CHANGED
|
@@ -304,9 +304,10 @@ export class Identity extends TinyEmitter {
|
|
|
304
304
|
* @param {string} [options.locale]
|
|
305
305
|
* @param {boolean} [options.oneStepLogin=false]
|
|
306
306
|
* @param {string} [options.prompt=select_account]
|
|
307
|
+
* @param {string} [options.xDomainId]
|
|
307
308
|
* @return {Window|null} - Reference to popup window if created (or `null` otherwise)
|
|
308
309
|
*/
|
|
309
|
-
login({ state, acrValues, scope, redirectUri, preferPopup, loginHint, tag, teaser, maxAge, locale, oneStepLogin, prompt }: LoginOptions): Window | null;
|
|
310
|
+
login({ state, acrValues, scope, redirectUri, preferPopup, loginHint, tag, teaser, maxAge, locale, oneStepLogin, prompt, xDomainId }: LoginOptions): Window | null;
|
|
310
311
|
/**
|
|
311
312
|
* @async
|
|
312
313
|
* @summary Retrieve the sp_id (Varnish ID)
|
|
@@ -439,6 +440,11 @@ export type LoginOptions = {
|
|
|
439
440
|
* End-User for reauthentication or confirm account screen. Supported values: `select_account` or `login`
|
|
440
441
|
*/
|
|
441
442
|
prompt?: string;
|
|
443
|
+
/**
|
|
444
|
+
* - Identifier for cross-domain tracking in Pulse
|
|
445
|
+
*/
|
|
446
|
+
xDomainId?: string;
|
|
447
|
+
|
|
442
448
|
};
|
|
443
449
|
export type SimplifiedLoginWidgetLoginOptions = {
|
|
444
450
|
/**
|
|
@@ -508,6 +514,10 @@ export type SimplifiedLoginWidgetLoginOptions = {
|
|
|
508
514
|
* End-User for reauthentication or confirm account screen. Supported values: `select_account` or `login`
|
|
509
515
|
*/
|
|
510
516
|
prompt?: string;
|
|
517
|
+
/**
|
|
518
|
+
* - Identifier for cross-domain tracking in Pulse
|
|
519
|
+
*/
|
|
520
|
+
xDomainId?: string;
|
|
511
521
|
};
|
|
512
522
|
export type HasSessionSuccessResponse = {
|
|
513
523
|
/**
|
package/src/identity.js
CHANGED
|
@@ -852,6 +852,7 @@ export class Identity extends EventEmitter {
|
|
|
852
852
|
* @param {string} [options.locale]
|
|
853
853
|
* @param {boolean} [options.oneStepLogin=false]
|
|
854
854
|
* @param {string} [options.prompt=select_account]
|
|
855
|
+
* @param {string} [options.xDomainId]
|
|
855
856
|
* @return {Window|null} - Reference to popup window if created (or `null` otherwise)
|
|
856
857
|
*/
|
|
857
858
|
login({
|
|
@@ -866,7 +867,8 @@ export class Identity extends EventEmitter {
|
|
|
866
867
|
maxAge = '',
|
|
867
868
|
locale = '',
|
|
868
869
|
oneStepLogin = false,
|
|
869
|
-
prompt = 'select_account'
|
|
870
|
+
prompt = 'select_account',
|
|
871
|
+
xDomainId = ''
|
|
870
872
|
}) {
|
|
871
873
|
this._closePopup();
|
|
872
874
|
this.sessionStorageCache.delete(HAS_SESSION_CACHE_KEY);
|
|
@@ -881,7 +883,8 @@ export class Identity extends EventEmitter {
|
|
|
881
883
|
maxAge,
|
|
882
884
|
locale,
|
|
883
885
|
oneStepLogin,
|
|
884
|
-
prompt
|
|
886
|
+
prompt,
|
|
887
|
+
xDomainId
|
|
885
888
|
});
|
|
886
889
|
|
|
887
890
|
if (preferPopup) {
|
|
@@ -952,6 +955,7 @@ export class Identity extends EventEmitter {
|
|
|
952
955
|
locale = '',
|
|
953
956
|
oneStepLogin = false,
|
|
954
957
|
prompt = 'select_account',
|
|
958
|
+
xDomainId = ''
|
|
955
959
|
}) {
|
|
956
960
|
if (typeof arguments[0] !== 'object') {
|
|
957
961
|
// backward compatibility
|
|
@@ -984,7 +988,8 @@ export class Identity extends EventEmitter {
|
|
|
984
988
|
max_age: maxAge,
|
|
985
989
|
locale,
|
|
986
990
|
one_step_login: oneStepLogin || '',
|
|
987
|
-
prompt: acrValues ? '' : prompt
|
|
991
|
+
prompt: acrValues ? '' : prompt,
|
|
992
|
+
x_domain_id: xDomainId
|
|
988
993
|
});
|
|
989
994
|
}
|
|
990
995
|
|
package/src/version.js
CHANGED