cidaas-javascript-sdk 4.2.1 → 4.2.2

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.
@@ -1,15 +1,3 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -19,48 +7,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
20
8
  });
21
9
  };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- exports.__esModule = true;
50
- exports.WebAuth = exports.createPreloginWebauth = void 0;
51
- var authentication_1 = require("../authentication");
52
- var Helper_1 = require("./Helper");
53
- var LoginService_1 = require("./LoginService");
54
- var UserService_1 = require("./UserService");
55
- var TokenService_1 = require("./TokenService");
56
- var VerificationService_1 = require("./VerificationService");
57
- var ConsentService_1 = require("./ConsentService");
58
- var createPreloginWebauth = function (authority) {
10
+ import { Authentication, OidcManager } from '../authentication';
11
+ import { Helper, CustomException } from "./Helper";
12
+ import { LoginService } from "./LoginService";
13
+ import { UserService } from "./UserService";
14
+ import { TokenService } from "./TokenService";
15
+ import { VerificationService } from "./VerificationService";
16
+ import { ConsentService } from "./ConsentService";
17
+ export const createPreloginWebauth = (authority) => {
59
18
  return new WebAuth({ 'authority': authority });
60
19
  };
61
- exports.createPreloginWebauth = createPreloginWebauth;
62
- var WebAuth = /** @class */ (function () {
63
- function WebAuth(settings) {
20
+ export class WebAuth {
21
+ constructor(settings) {
64
22
  try {
65
23
  if (!settings.response_type) {
66
24
  settings.response_type = "code";
@@ -71,13 +29,13 @@ var WebAuth = /** @class */ (function () {
71
29
  if (settings.authority && settings.authority.charAt(settings.authority.length - 1) === '/') {
72
30
  settings.authority = settings.authority.slice(0, settings.authority.length - 1);
73
31
  }
74
- var usermanager = new authentication_1.OidcManager(settings);
32
+ var usermanager = new OidcManager(settings);
75
33
  window.webAuthSettings = settings;
76
34
  window.usermanager = usermanager;
77
35
  window.localeSettings = null;
78
- window.authentication = new authentication_1.Authentication(window.webAuthSettings, window.usermanager);
36
+ window.authentication = new Authentication(window.webAuthSettings, window.usermanager);
79
37
  window.usermanager.events.addSilentRenewError(function () {
80
- throw new Helper_1.CustomException("Error while renewing silent login", 500);
38
+ throw new CustomException("Error while renewing silent login", 500);
81
39
  });
82
40
  }
83
41
  catch (ex) {
@@ -89,12 +47,12 @@ var WebAuth = /** @class */ (function () {
89
47
  * Generate and redirect to authz url in same window for logging in.
90
48
  * @param {LoginRedirectOptions} options options options to over-ride the client config for redirect login
91
49
  */
92
- WebAuth.prototype.loginWithBrowser = function (options) {
50
+ loginWithBrowser(options) {
93
51
  if (!window.webAuthSettings || !window.authentication) {
94
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
52
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
95
53
  }
96
54
  return window.authentication.loginOrRegisterWithBrowser('login', options);
97
- };
55
+ }
98
56
  ;
99
57
  /**
100
58
  * Generate and open authz url in a popup window.
@@ -104,12 +62,12 @@ var WebAuth = /** @class */ (function () {
104
62
  * @returns {Promise<User>} Authenticated user
105
63
  * @throws error if unable to get the parse and get user
106
64
  */
107
- WebAuth.prototype.popupSignIn = function (options) {
65
+ popupSignIn(options) {
108
66
  if (!window.webAuthSettings || !window.authentication) {
109
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
67
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
110
68
  }
111
69
  return window.authentication.popupSignIn(options);
112
- };
70
+ }
113
71
  ;
114
72
  /**
115
73
  * Generate and navigate to authz url in an iFrame.
@@ -119,23 +77,23 @@ var WebAuth = /** @class */ (function () {
119
77
  * @returns {Promise<User>} Authenticated user
120
78
  * @throws error if unable to get the parse and get user
121
79
  */
122
- WebAuth.prototype.silentSignIn = function (options) {
80
+ silentSignIn(options) {
123
81
  if (!window.webAuthSettings || !window.authentication) {
124
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
82
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
125
83
  }
126
84
  return window.authentication.silentSignIn(options);
127
- };
85
+ }
128
86
  ;
129
87
  /**
130
88
  * Generate and redirect to authz url in same window for register view.
131
89
  * @param {LoginRedirectOptions} options options options to over-ride the client config for redirect login
132
90
  */
133
- WebAuth.prototype.registerWithBrowser = function (options) {
91
+ registerWithBrowser(options) {
134
92
  if (!window.webAuthSettings || !window.authentication) {
135
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
93
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
136
94
  }
137
95
  return window.authentication.loginOrRegisterWithBrowser('register', options);
138
- };
96
+ }
139
97
  ;
140
98
  /**
141
99
  * Once login successful, it will automatically redirects you to the redirect url whatever you mentioned in the options.
@@ -145,12 +103,12 @@ var WebAuth = /** @class */ (function () {
145
103
  * @returns {Promise<User>} Authenticated user
146
104
  * @throws error if unable to get the parse and get user
147
105
  */
148
- WebAuth.prototype.loginCallback = function (url) {
106
+ loginCallback(url) {
149
107
  if (!window.webAuthSettings || !window.authentication) {
150
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
108
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
151
109
  }
152
110
  return window.authentication.loginCallback(url);
153
- };
111
+ }
154
112
  ;
155
113
  /**
156
114
  * To complete the popup login process, call **popupSignInCallback()** from the popup login window.
@@ -159,23 +117,23 @@ var WebAuth = /** @class */ (function () {
159
117
  * @param {string} url optional url to read sign-in callback state from
160
118
  * @param {boolean} keepOpen true to keep the popup open even after sign in, else false
161
119
  */
162
- WebAuth.prototype.popupSignInCallback = function (url, keepOpen) {
120
+ popupSignInCallback(url, keepOpen) {
163
121
  if (!window.webAuthSettings || !window.authentication) {
164
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
122
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
165
123
  }
166
124
  return window.authentication.popupSignInCallback(url, keepOpen);
167
- };
125
+ }
168
126
  ;
169
127
  /**
170
128
  * Returns a promise to notify the parent window of response from authz service
171
129
  * @param {string} url optional url to check authz response, if none window.location is used
172
130
  */
173
- WebAuth.prototype.silentSignInCallback = function (url) {
131
+ silentSignInCallback(url) {
174
132
  if (!window.webAuthSettings || !window.authentication) {
175
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
133
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
176
134
  }
177
135
  return window.authentication.silentSignInCallback(url);
178
- };
136
+ }
179
137
  ;
180
138
  /**
181
139
  * To get the user profile information by using oidc-client-ts library, call **getUserInfo()**. This will return the basic user profile details along with groups, roles and whatever scopes you mentioned in the options.
@@ -189,65 +147,60 @@ var WebAuth = /** @class */ (function () {
189
147
  * ```
190
148
  * @return {Promise<User|null>} returns authenticated user if present, else null
191
149
  */
192
- WebAuth.prototype.getUserInfo = function () {
193
- return __awaiter(this, void 0, void 0, function () {
194
- return __generator(this, function (_a) {
195
- switch (_a.label) {
196
- case 0:
197
- if (!window.usermanager) {
198
- return [2 /*return*/, Promise.reject(new Helper_1.CustomException("UserManager cannot be empty", 417))];
199
- }
200
- return [4 /*yield*/, window.usermanager.getUser()];
201
- case 1: return [2 /*return*/, _a.sent()];
202
- }
203
- });
150
+ getUserInfo() {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ if (!window.usermanager) {
153
+ return Promise.reject(new CustomException("UserManager cannot be empty", 417));
154
+ }
155
+ return yield window.usermanager.getUser();
204
156
  });
205
- };
157
+ }
206
158
  ;
207
159
  /**
208
160
  * logout by using oidc-client-ts library
209
161
  * @param {LogoutRedirectOptions} options optional options to over-ride logout options on redirect
210
162
  */
211
- WebAuth.prototype.logout = function (options) {
163
+ logout(options) {
212
164
  if (!window.webAuthSettings || !window.authentication) {
213
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
165
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
214
166
  }
215
167
  return window.authentication.logout(options);
216
- };
168
+ }
217
169
  ;
218
170
  /**
219
171
  * logout by using oidc-client-ts library
220
172
  * @param {PopupSignOutOptions} options optional options to over-ride logout options using popup window
221
173
  */
222
- WebAuth.prototype.popupSignOut = function (options) {
174
+ popupSignOut(options) {
223
175
  if (!window.webAuthSettings || !window.authentication) {
224
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
176
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
225
177
  }
226
178
  return window.authentication.popupSignOut(options);
227
- };
179
+ }
228
180
  ;
229
181
  /**
230
182
  * get the logout call state from the url provided, if none is provided current window url is used
231
183
  * @returns {Promise<LogoutResponse>} logout response from auth service
232
184
  */
233
- WebAuth.prototype.logoutCallback = function (url) {
185
+ logoutCallback(url) {
234
186
  if (!window.webAuthSettings || !window.authentication) {
235
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
187
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
236
188
  }
237
189
  return window.authentication.logoutCallback(url);
238
- };
190
+ }
239
191
  ;
240
192
  /**
241
193
  * listen to popup sign out event
242
194
  * @param {string} url optional url to override to check for sign out state
243
195
  * @param {boolean} keepOpen true to keep the popup open even after sign out, else false
244
196
  */
245
- WebAuth.prototype.popupSignOutCallback = function (url, keepOpen) {
197
+ popupSignOutCallback(url, keepOpen) {
246
198
  if (!window.webAuthSettings || !window.authentication) {
247
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
199
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
248
200
  }
201
+ url = url || window.webAuthSettings.post_logout_redirect_uri;
249
202
  return window.authentication.popupSignOutCallback(url, keepOpen);
250
- };
203
+ }
251
204
  ;
252
205
  /**
253
206
  * To get the generated login url, call **getLoginURL()**. This will call authz service and generate login url to be used.
@@ -262,13 +215,13 @@ var WebAuth = /** @class */ (function () {
262
215
  * @param {LoginRequestOptions} options login options to override {@link window.webAuthSettings} provided
263
216
  * @return {Promise<string>} authz url for login
264
217
  */
265
- WebAuth.prototype.getLoginURL = function (options) {
218
+ getLoginURL(options) {
266
219
  if (!window.webAuthSettings || !window.authentication) {
267
- return Promise.reject(new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
220
+ return Promise.reject(new CustomException("Settings or Authentication instance in OIDC cannot be empty", 417));
268
221
  }
269
- return new Promise(function (resolve, reject) {
222
+ return new Promise((resolve, reject) => {
270
223
  try {
271
- window.usermanager.getClient().createSigninRequest(__assign(__assign({}, window.webAuthSettings), (options && { options: options } || {}))).then(function (signinRequest) {
224
+ window.usermanager.getClient().createSigninRequest(Object.assign(Object.assign({}, window.webAuthSettings), (options && { options } || {}))).then((signinRequest) => {
272
225
  resolve(signinRequest.url);
273
226
  });
274
227
  }
@@ -276,7 +229,7 @@ var WebAuth = /** @class */ (function () {
276
229
  reject(e);
277
230
  }
278
231
  });
279
- };
232
+ }
280
233
  ;
281
234
  /**
282
235
  * Each and every proccesses starts with requestId, it is an entry point to login or register. For getting the requestId, call **getRequestId()**.
@@ -289,13 +242,13 @@ var WebAuth = /** @class */ (function () {
289
242
  * });
290
243
  * ```
291
244
  */
292
- WebAuth.prototype.getRequestId = function () {
245
+ getRequestId() {
293
246
  var _a, _b;
294
- var ui_locales = window.webAuthSettings.ui_locales;
295
- var options = __assign({ 'client_id': window.webAuthSettings.client_id, 'redirect_uri': window.webAuthSettings.redirect_uri, 'response_type': (_a = window.webAuthSettings.response_type) !== null && _a !== void 0 ? _a : 'token', "response_mode": (_b = window.webAuthSettings.response_mode) !== null && _b !== void 0 ? _b : 'fragment', "scope": window.webAuthSettings.scope, "nonce": new Date().getTime().toString() }, (ui_locales && { ui_locales: ui_locales } || {}));
296
- var serviceURL = window.webAuthSettings.authority + '/authz-srv/authrequest/authz/generate';
297
- return Helper_1.Helper.createHttpPromise(options, serviceURL, false, "POST");
298
- };
247
+ const ui_locales = window.webAuthSettings.ui_locales;
248
+ const options = Object.assign({ 'client_id': window.webAuthSettings.client_id, 'redirect_uri': window.webAuthSettings.redirect_uri, 'response_type': (_a = window.webAuthSettings.response_type) !== null && _a !== void 0 ? _a : 'token', "response_mode": (_b = window.webAuthSettings.response_mode) !== null && _b !== void 0 ? _b : 'fragment', "scope": window.webAuthSettings.scope, "nonce": new Date().getTime().toString() }, (ui_locales && { ui_locales } || {}));
249
+ const serviceURL = window.webAuthSettings.authority + '/authz-srv/authrequest/authz/generate';
250
+ return Helper.createHttpPromise(options, serviceURL, false, "POST");
251
+ }
299
252
  ;
300
253
  /**
301
254
  * To get the tenant basic information, call **getTenantInfo()**. This will return the basic tenant details such as tenant name and allowed login with types (Email, Mobile, Username).
@@ -308,10 +261,10 @@ var WebAuth = /** @class */ (function () {
308
261
  * });
309
262
  * ```
310
263
  */
311
- WebAuth.prototype.getTenantInfo = function () {
312
- var _serviceURL = window.webAuthSettings.authority + "/public-srv/tenantinfo/basic";
313
- return Helper_1.Helper.createHttpPromise(undefined, _serviceURL, false, "GET");
314
- };
264
+ getTenantInfo() {
265
+ const _serviceURL = window.webAuthSettings.authority + "/public-srv/tenantinfo/basic";
266
+ return Helper.createHttpPromise(undefined, _serviceURL, false, "GET");
267
+ }
315
268
  ;
316
269
  /**
317
270
  * To logout the user by using cidaas internal api, call **logoutUser()**.
@@ -323,9 +276,9 @@ var WebAuth = /** @class */ (function () {
323
276
  * });
324
277
  * ```
325
278
  */
326
- WebAuth.prototype.logoutUser = function (options) {
279
+ logoutUser(options) {
327
280
  window.location.href = window.webAuthSettings.authority + "/session/end_session?access_token_hint=" + options.access_token + "&post_logout_redirect_uri=" + window.webAuthSettings.post_logout_redirect_uri;
328
- };
281
+ }
329
282
  ;
330
283
  /**
331
284
  * To get the client basic information, call **getClientInfo()**. This will return the basic client details such as client name and its details.
@@ -341,10 +294,10 @@ var WebAuth = /** @class */ (function () {
341
294
  * });
342
295
  * ```
343
296
  */
344
- WebAuth.prototype.getClientInfo = function (options) {
345
- var _serviceURL = window.webAuthSettings.authority + "/public-srv/public/" + options.requestId;
346
- return Helper_1.Helper.createHttpPromise(undefined, _serviceURL, false, "GET");
347
- };
297
+ getClientInfo(options) {
298
+ const _serviceURL = window.webAuthSettings.authority + "/public-srv/public/" + options.requestId;
299
+ return Helper.createHttpPromise(undefined, _serviceURL, false, "GET");
300
+ }
348
301
  ;
349
302
  /**
350
303
  * To get all devices information associated to the client, call **getDevicesInfo()**
@@ -360,14 +313,14 @@ var WebAuth = /** @class */ (function () {
360
313
  * });
361
314
  * ```
362
315
  */
363
- WebAuth.prototype.getDevicesInfo = function (options, accessToken) {
316
+ getDevicesInfo(options, accessToken) {
364
317
  options.userAgent = window.navigator.userAgent;
365
- var _serviceURL = window.webAuthSettings.authority + "/device-srv/devices";
318
+ const _serviceURL = window.webAuthSettings.authority + "/device-srv/devices";
366
319
  if (window.navigator.userAgent) {
367
- return Helper_1.Helper.createHttpPromise(options, _serviceURL, false, "GET", accessToken);
320
+ return Helper.createHttpPromise(options, _serviceURL, false, "GET", accessToken);
368
321
  }
369
- return Helper_1.Helper.createHttpPromise(undefined, _serviceURL, false, "GET", accessToken);
370
- };
322
+ return Helper.createHttpPromise(undefined, _serviceURL, false, "GET", accessToken);
323
+ }
371
324
  ;
372
325
  /**
373
326
  * To delete device associated to the client, call **deleteDevice()**
@@ -385,14 +338,14 @@ var WebAuth = /** @class */ (function () {
385
338
  * });
386
339
  * ```
387
340
  */
388
- WebAuth.prototype.deleteDevice = function (options, accessToken) {
389
- var _serviceURL = window.webAuthSettings.authority + "/device-srv/device/" + options.device_id;
341
+ deleteDevice(options, accessToken) {
342
+ const _serviceURL = window.webAuthSettings.authority + "/device-srv/device/" + options.device_id;
390
343
  options.userAgent = window.navigator.userAgent;
391
344
  if (window.navigator.userAgent) {
392
- return Helper_1.Helper.createHttpPromise(options, _serviceURL, false, "DELETE", accessToken);
345
+ return Helper.createHttpPromise(options, _serviceURL, false, "DELETE", accessToken);
393
346
  }
394
- return Helper_1.Helper.createHttpPromise(undefined, _serviceURL, false, "DELETE", accessToken);
395
- };
347
+ return Helper.createHttpPromise(undefined, _serviceURL, false, "DELETE", accessToken);
348
+ }
396
349
  ;
397
350
  /**
398
351
  * To handle registration, first you need the registration fields. To get the registration fields, call **getRegistrationSetup()**. This will return the fields that has to be needed while registration.
@@ -409,10 +362,10 @@ var WebAuth = /** @class */ (function () {
409
362
  * });
410
363
  * ```
411
364
  */
412
- WebAuth.prototype.getRegistrationSetup = function (options) {
413
- var serviceURL = window.webAuthSettings.authority + '/registration-setup-srv/public/list?acceptlanguage=' + options.acceptlanguage + '&requestId=' + options.requestId;
414
- return Helper_1.Helper.createHttpPromise(undefined, serviceURL, false, 'GET');
415
- };
365
+ getRegistrationSetup(options) {
366
+ const serviceURL = window.webAuthSettings.authority + '/registration-setup-srv/public/list?acceptlanguage=' + options.acceptlanguage + '&requestId=' + options.requestId;
367
+ return Helper.createHttpPromise(undefined, serviceURL, false, 'GET');
368
+ }
416
369
  ;
417
370
  /**
418
371
  * to generate device info, call **createDeviceInfo()**.
@@ -426,78 +379,78 @@ var WebAuth = /** @class */ (function () {
426
379
  * });
427
380
  * ```
428
381
  */
429
- WebAuth.prototype.createDeviceInfo = function () {
430
- var value = ('; ' + document.cookie).split("; cidaas_dr=").pop().split(';')[0];
382
+ createDeviceInfo() {
383
+ const value = ('; ' + document.cookie).split(`; cidaas_dr=`).pop().split(';')[0];
431
384
  if (!value) {
432
- var options = {
385
+ const options = {
433
386
  userAgent: window.navigator.userAgent
434
387
  };
435
- var serviceURL = window.webAuthSettings.authority + '/device-srv/deviceinfo';
436
- return Helper_1.Helper.createHttpPromise(options, serviceURL, false, 'POST');
388
+ const serviceURL = window.webAuthSettings.authority + '/device-srv/deviceinfo';
389
+ return Helper.createHttpPromise(options, serviceURL, false, 'POST');
437
390
  }
438
- };
391
+ }
439
392
  ;
440
393
  /**
441
394
  * get the user profile information
442
395
  * @param options
443
396
  * @returns
444
397
  */
445
- WebAuth.prototype.getUserProfile = function (options) {
446
- return UserService_1.UserService.getUserProfile(options);
447
- };
398
+ getUserProfile(options) {
399
+ return UserService.getUserProfile(options);
400
+ }
448
401
  ;
449
402
  /**
450
403
  * renew token using refresh token
451
404
  * @param options
452
405
  * @returns
453
406
  */
454
- WebAuth.prototype.renewToken = function (options) {
455
- return TokenService_1.TokenService.renewToken(options);
456
- };
407
+ renewToken(options) {
408
+ return TokenService.renewToken(options);
409
+ }
457
410
  ;
458
411
  /**
459
412
  * get access token from code
460
413
  * @param options
461
414
  * @returns
462
415
  */
463
- WebAuth.prototype.getAccessToken = function (options) {
464
- return TokenService_1.TokenService.getAccessToken(options);
465
- };
416
+ getAccessToken(options) {
417
+ return TokenService.getAccessToken(options);
418
+ }
466
419
  ;
467
420
  /**
468
421
  * validate access token
469
422
  * @param options
470
423
  * @returns
471
424
  */
472
- WebAuth.prototype.validateAccessToken = function (options) {
473
- return TokenService_1.TokenService.validateAccessToken(options);
474
- };
425
+ validateAccessToken(options) {
426
+ return TokenService.validateAccessToken(options);
427
+ }
475
428
  ;
476
429
  /**
477
430
  * login with username and password
478
431
  * @param options
479
432
  */
480
- WebAuth.prototype.loginWithCredentials = function (options) {
481
- LoginService_1.LoginService.loginWithCredentials(options);
482
- };
433
+ loginWithCredentials(options) {
434
+ LoginService.loginWithCredentials(options);
435
+ }
483
436
  ;
484
437
  /**
485
438
  * login with social
486
439
  * @param options
487
440
  * @param queryParams
488
441
  */
489
- WebAuth.prototype.loginWithSocial = function (options, queryParams) {
490
- LoginService_1.LoginService.loginWithSocial(options, queryParams);
491
- };
442
+ loginWithSocial(options, queryParams) {
443
+ LoginService.loginWithSocial(options, queryParams);
444
+ }
492
445
  ;
493
446
  /**
494
447
  * register with social
495
448
  * @param options
496
449
  * @param queryParams
497
450
  */
498
- WebAuth.prototype.registerWithSocial = function (options, queryParams) {
499
- LoginService_1.LoginService.registerWithSocial(options, queryParams);
500
- };
451
+ registerWithSocial(options, queryParams) {
452
+ LoginService.registerWithSocial(options, queryParams);
453
+ }
501
454
  ;
502
455
  /**
503
456
  * register user
@@ -505,210 +458,210 @@ var WebAuth = /** @class */ (function () {
505
458
  * @param headers
506
459
  * @returns
507
460
  */
508
- WebAuth.prototype.register = function (options, headers) {
509
- return UserService_1.UserService.register(options, headers);
510
- };
461
+ register(options, headers) {
462
+ return UserService.register(options, headers);
463
+ }
511
464
  ;
512
465
  /**
513
466
  * get invite info
514
467
  * @param options
515
468
  * @returns
516
469
  */
517
- WebAuth.prototype.getInviteUserDetails = function (options) {
518
- return UserService_1.UserService.getInviteUserDetails(options);
519
- };
470
+ getInviteUserDetails(options) {
471
+ return UserService.getInviteUserDetails(options);
472
+ }
520
473
  ;
521
474
  /**
522
475
  * get Communication status
523
476
  * @param options
524
477
  * @returns
525
478
  */
526
- WebAuth.prototype.getCommunicationStatus = function (options, headers) {
527
- return UserService_1.UserService.getCommunicationStatus(options, headers);
528
- };
479
+ getCommunicationStatus(options, headers) {
480
+ return UserService.getCommunicationStatus(options, headers);
481
+ }
529
482
  ;
530
483
  /**
531
484
  * initiate verification
532
485
  * @param options
533
486
  * @returns
534
487
  */
535
- WebAuth.prototype.initiateAccountVerification = function (options) {
536
- VerificationService_1.VerificationService.initiateAccountVerification(options);
537
- };
488
+ initiateAccountVerification(options) {
489
+ VerificationService.initiateAccountVerification(options);
490
+ }
538
491
  ;
539
492
  /**
540
493
  * verify account
541
494
  * @param options
542
495
  * @returns
543
496
  */
544
- WebAuth.prototype.verifyAccount = function (options) {
545
- return VerificationService_1.VerificationService.verifyAccount(options);
546
- };
497
+ verifyAccount(options) {
498
+ return VerificationService.verifyAccount(options);
499
+ }
547
500
  ;
548
501
  /**
549
502
  * initiate reset password
550
503
  * @param options
551
504
  * @returns
552
505
  */
553
- WebAuth.prototype.initiateResetPassword = function (options) {
554
- return UserService_1.UserService.initiateResetPassword(options);
555
- };
506
+ initiateResetPassword(options) {
507
+ return UserService.initiateResetPassword(options);
508
+ }
556
509
  ;
557
510
  /**
558
511
  * handle reset password
559
512
  * @param options
560
513
  */
561
- WebAuth.prototype.handleResetPassword = function (options) {
562
- return UserService_1.UserService.handleResetPassword(options);
563
- };
514
+ handleResetPassword(options) {
515
+ return UserService.handleResetPassword(options);
516
+ }
564
517
  ;
565
518
  /**
566
519
  * reset password
567
520
  * @param options
568
521
  */
569
- WebAuth.prototype.resetPassword = function (options) {
570
- return UserService_1.UserService.resetPassword(options);
571
- };
522
+ resetPassword(options) {
523
+ return UserService.resetPassword(options);
524
+ }
572
525
  ;
573
526
  /**
574
527
  * get mfa list
575
528
  * @param options
576
529
  * @returns
577
530
  */
578
- WebAuth.prototype.getMFAList = function (options) {
579
- return VerificationService_1.VerificationService.getMFAList(options);
580
- };
531
+ getMFAList(options) {
532
+ return VerificationService.getMFAList(options);
533
+ }
581
534
  ;
582
535
  /**
583
536
  * cancel mfa
584
537
  * @param options
585
538
  * @returns
586
539
  */
587
- WebAuth.prototype.cancelMFA = function (options) {
588
- return VerificationService_1.VerificationService.cancelMFA(options);
589
- };
540
+ cancelMFA(options) {
541
+ return VerificationService.cancelMFA(options);
542
+ }
590
543
  ;
591
544
  /**
592
545
  * passwordless login
593
546
  * @param options
594
547
  */
595
- WebAuth.prototype.passwordlessLogin = function (options) {
596
- LoginService_1.LoginService.passwordlessLogin(options);
597
- };
548
+ passwordlessLogin(options) {
549
+ LoginService.passwordlessLogin(options);
550
+ }
598
551
  ;
599
552
  /**
600
553
  * get user consent details
601
554
  * @param options
602
555
  * @returns
603
556
  */
604
- WebAuth.prototype.getConsentDetails = function (options) {
605
- return ConsentService_1.ConsentService.getConsentDetails(options);
606
- };
557
+ getConsentDetails(options) {
558
+ return ConsentService.getConsentDetails(options);
559
+ }
607
560
  ;
608
561
  /**
609
562
  * accept consent
610
563
  * @param options
611
564
  * @returns
612
565
  */
613
- WebAuth.prototype.acceptConsent = function (options) {
614
- return ConsentService_1.ConsentService.acceptConsent(options);
615
- };
566
+ acceptConsent(options) {
567
+ return ConsentService.acceptConsent(options);
568
+ }
616
569
  ;
617
570
  /**
618
571
  * get scope consent details
619
572
  * @param options
620
573
  * @returns
621
574
  */
622
- WebAuth.prototype.loginPrecheck = function (options) {
623
- return TokenService_1.TokenService.loginPrecheck(options);
624
- };
575
+ loginPrecheck(options) {
576
+ return TokenService.loginPrecheck(options);
577
+ }
625
578
  ;
626
579
  /**
627
580
  * get scope consent version details
628
581
  * @param options
629
582
  * @returns
630
583
  */
631
- WebAuth.prototype.getConsentVersionDetails = function (options) {
632
- return ConsentService_1.ConsentService.getConsentVersionDetails(options);
633
- };
584
+ getConsentVersionDetails(options) {
585
+ return ConsentService.getConsentVersionDetails(options);
586
+ }
634
587
  ;
635
588
  /**
636
589
  * accept scope Consent
637
590
  * @param options
638
591
  * @returns
639
592
  */
640
- WebAuth.prototype.acceptScopeConsent = function (options) {
641
- return ConsentService_1.ConsentService.acceptScopeConsent(options);
642
- };
593
+ acceptScopeConsent(options) {
594
+ return ConsentService.acceptScopeConsent(options);
595
+ }
643
596
  ;
644
597
  /**
645
598
  * accept claim Consent
646
599
  * @param options
647
600
  * @returns
648
601
  */
649
- WebAuth.prototype.acceptClaimConsent = function (options) {
650
- return ConsentService_1.ConsentService.acceptClaimConsent(options);
651
- };
602
+ acceptClaimConsent(options) {
603
+ return ConsentService.acceptClaimConsent(options);
604
+ }
652
605
  ;
653
606
  /**
654
607
  * revoke claim Consent
655
608
  * @param options
656
609
  * @returns
657
610
  */
658
- WebAuth.prototype.revokeClaimConsent = function (options) {
659
- return ConsentService_1.ConsentService.revokeClaimConsent(options);
660
- };
611
+ revokeClaimConsent(options) {
612
+ return ConsentService.revokeClaimConsent(options);
613
+ }
661
614
  ;
662
615
  /**
663
616
  * get Deduplication details
664
617
  * @param options
665
618
  * @returns
666
619
  */
667
- WebAuth.prototype.getDeduplicationDetails = function (options) {
668
- return UserService_1.UserService.getDeduplicationDetails(options);
669
- };
620
+ getDeduplicationDetails(options) {
621
+ return UserService.getDeduplicationDetails(options);
622
+ }
670
623
  ;
671
624
  /**
672
625
  * deduplication login
673
626
  * @param options
674
627
  */
675
- WebAuth.prototype.deduplicationLogin = function (options) {
676
- UserService_1.UserService.deduplicationLogin(options);
677
- };
628
+ deduplicationLogin(options) {
629
+ UserService.deduplicationLogin(options);
630
+ }
678
631
  ;
679
632
  /**
680
633
  * register Deduplication
681
634
  * @param options
682
635
  * @returns
683
636
  */
684
- WebAuth.prototype.registerDeduplication = function (options) {
685
- return UserService_1.UserService.registerDeduplication(options);
686
- };
637
+ registerDeduplication(options) {
638
+ return UserService.registerDeduplication(options);
639
+ }
687
640
  ;
688
641
  /**
689
642
  * accepts any as the request
690
643
  * consent continue login
691
644
  * @param options
692
645
  */
693
- WebAuth.prototype.consentContinue = function (options) {
694
- LoginService_1.LoginService.consentContinue(options);
695
- };
646
+ consentContinue(options) {
647
+ LoginService.consentContinue(options);
648
+ }
696
649
  ;
697
650
  /**
698
651
  * mfa continue login
699
652
  * @param options
700
653
  */
701
- WebAuth.prototype.mfaContinue = function (options) {
702
- LoginService_1.LoginService.mfaContinue(options);
703
- };
654
+ mfaContinue(options) {
655
+ LoginService.mfaContinue(options);
656
+ }
704
657
  ;
705
658
  /**
706
659
  * change password continue
707
660
  * @param options
708
661
  */
709
- WebAuth.prototype.firstTimeChangePassword = function (options) {
710
- LoginService_1.LoginService.firstTimeChangePassword(options);
711
- };
662
+ firstTimeChangePassword(options) {
663
+ LoginService.firstTimeChangePassword(options);
664
+ }
712
665
  ;
713
666
  /**
714
667
  * change password
@@ -716,9 +669,9 @@ var WebAuth = /** @class */ (function () {
716
669
  * @param access_token
717
670
  * @returns
718
671
  */
719
- WebAuth.prototype.changePassword = function (options, access_token) {
720
- return UserService_1.UserService.changePassword(options, access_token);
721
- };
672
+ changePassword(options, access_token) {
673
+ return UserService.changePassword(options, access_token);
674
+ }
722
675
  ;
723
676
  /**
724
677
  * update profile
@@ -727,9 +680,9 @@ var WebAuth = /** @class */ (function () {
727
680
  * @param sub
728
681
  * @returns
729
682
  */
730
- WebAuth.prototype.updateProfile = function (options, access_token, sub) {
731
- return UserService_1.UserService.updateProfile(options, access_token, sub);
732
- };
683
+ updateProfile(options, access_token, sub) {
684
+ return UserService.updateProfile(options, access_token, sub);
685
+ }
733
686
  ;
734
687
  /**
735
688
  * To get user activities, call **getUserActivities()**.
@@ -751,17 +704,17 @@ var WebAuth = /** @class */ (function () {
751
704
  * });
752
705
  * ```
753
706
  */
754
- WebAuth.prototype.getUserActivities = function (options, accessToken) {
755
- var serviceURL = window.webAuthSettings.authority + '/activity-streams-srv/user-activities';
756
- return Helper_1.Helper.createHttpPromise(options, serviceURL, false, 'POST', accessToken);
757
- };
707
+ getUserActivities(options, accessToken) {
708
+ const serviceURL = window.webAuthSettings.authority + '/activity-streams-srv/user-activities';
709
+ return Helper.createHttpPromise(options, serviceURL, false, 'POST', accessToken);
710
+ }
758
711
  /**
759
712
  * @param access_token
760
713
  * @returns
761
714
  */
762
- WebAuth.prototype.getAllVerificationList = function (access_token) {
763
- return VerificationService_1.VerificationService.getAllVerificationList(access_token);
764
- };
715
+ getAllVerificationList(access_token) {
716
+ return VerificationService.getAllVerificationList(access_token);
717
+ }
765
718
  ;
766
719
  /**
767
720
  * initiate link accoount
@@ -769,9 +722,9 @@ var WebAuth = /** @class */ (function () {
769
722
  * @param access_token
770
723
  * @returns
771
724
  */
772
- WebAuth.prototype.initiateLinkAccount = function (options, access_token) {
773
- return UserService_1.UserService.initiateLinkAccount(options, access_token);
774
- };
725
+ initiateLinkAccount(options, access_token) {
726
+ return UserService.initiateLinkAccount(options, access_token);
727
+ }
775
728
  ;
776
729
  /**
777
730
  * complete link accoount
@@ -779,9 +732,9 @@ var WebAuth = /** @class */ (function () {
779
732
  * @param access_token
780
733
  * @returns
781
734
  */
782
- WebAuth.prototype.completeLinkAccount = function (options, access_token) {
783
- return UserService_1.UserService.completeLinkAccount(options, access_token);
784
- };
735
+ completeLinkAccount(options, access_token) {
736
+ return UserService.completeLinkAccount(options, access_token);
737
+ }
785
738
  ;
786
739
  /**
787
740
  * get linked users
@@ -789,9 +742,9 @@ var WebAuth = /** @class */ (function () {
789
742
  * @param sub
790
743
  * @returns
791
744
  */
792
- WebAuth.prototype.getLinkedUsers = function (access_token, sub) {
793
- return UserService_1.UserService.getLinkedUsers(access_token, sub);
794
- };
745
+ getLinkedUsers(access_token, sub) {
746
+ return UserService.getLinkedUsers(access_token, sub);
747
+ }
795
748
  ;
796
749
  /**
797
750
  * unlink accoount
@@ -799,9 +752,9 @@ var WebAuth = /** @class */ (function () {
799
752
  * @param identityId
800
753
  * @returns
801
754
  */
802
- WebAuth.prototype.unlinkAccount = function (access_token, identityId) {
803
- return UserService_1.UserService.unlinkAccount(access_token, identityId);
804
- };
755
+ unlinkAccount(access_token, identityId) {
756
+ return UserService.unlinkAccount(access_token, identityId);
757
+ }
805
758
  ;
806
759
  /**
807
760
  * To change profile image, call **updateProfileImage()**.
@@ -820,70 +773,70 @@ var WebAuth = /** @class */ (function () {
820
773
  * });
821
774
  * ```
822
775
  */
823
- WebAuth.prototype.updateProfileImage = function (options, access_token) {
824
- var serviceURL = window.webAuthSettings.authority + "/image-srv/profile/upload";
825
- var form = document.createElement('form');
776
+ updateProfileImage(options, access_token) {
777
+ const serviceURL = window.webAuthSettings.authority + "/image-srv/profile/upload";
778
+ const form = document.createElement('form');
826
779
  form.action = serviceURL;
827
780
  form.method = 'POST';
828
- var image_key = document.createElement('input');
781
+ const image_key = document.createElement('input');
829
782
  image_key.setAttribute('type', 'hidden');
830
783
  image_key.setAttribute('name', 'image_key');
831
784
  form.appendChild(image_key);
832
- var photo = document.createElement('input');
785
+ const photo = document.createElement('input');
833
786
  photo.setAttribute('type', 'file');
834
787
  photo.setAttribute('hidden', 'true');
835
788
  photo.setAttribute("name", "photo");
836
789
  form.appendChild(photo);
837
- var formdata = new FormData(form);
790
+ const formdata = new FormData(form);
838
791
  formdata.set('image_key', options.image_key);
839
792
  formdata.set('photo', options.photo, options.filename);
840
- return Helper_1.Helper.createHttpPromise(options, serviceURL, undefined, 'POST', access_token, null, formdata);
841
- };
793
+ return Helper.createHttpPromise(options, serviceURL, undefined, 'POST', access_token, null, formdata);
794
+ }
842
795
  ;
843
796
  /**
844
797
  * enrollVerification
845
798
  * @param options
846
799
  * @returns
847
800
  */
848
- WebAuth.prototype.initiateEnrollment = function (options, accessToken) {
849
- return VerificationService_1.VerificationService.initiateEnrollment(options, accessToken);
850
- };
801
+ initiateEnrollment(options, accessToken) {
802
+ return VerificationService.initiateEnrollment(options, accessToken);
803
+ }
851
804
  ;
852
805
  /**
853
806
  * update the status of notification
854
807
  * @param status_id
855
808
  * @returns
856
809
  */
857
- WebAuth.prototype.getEnrollmentStatus = function (status_id, accessToken) {
858
- return VerificationService_1.VerificationService.getEnrollmentStatus(status_id, accessToken);
859
- };
810
+ getEnrollmentStatus(status_id, accessToken) {
811
+ return VerificationService.getEnrollmentStatus(status_id, accessToken);
812
+ }
860
813
  ;
861
814
  /**
862
815
  * enrollVerification
863
816
  * @param options
864
817
  * @returns
865
818
  */
866
- WebAuth.prototype.enrollVerification = function (options) {
867
- return VerificationService_1.VerificationService.enrollVerification(options);
868
- };
819
+ enrollVerification(options) {
820
+ return VerificationService.enrollVerification(options);
821
+ }
869
822
  ;
870
823
  /**
871
824
  * checkVerificationTypeConfigured
872
825
  * @param options
873
826
  * @returns
874
827
  */
875
- WebAuth.prototype.checkVerificationTypeConfigured = function (options) {
876
- return VerificationService_1.VerificationService.checkVerificationTypeConfigured(options);
877
- };
828
+ checkVerificationTypeConfigured(options) {
829
+ return VerificationService.checkVerificationTypeConfigured(options);
830
+ }
878
831
  ;
879
832
  /**
880
833
  * deleteUserAccount
881
834
  * @param options
882
835
  * @returns
883
836
  */
884
- WebAuth.prototype.deleteUserAccount = function (options) {
885
- return UserService_1.UserService.deleteUserAccount(options);
886
- };
837
+ deleteUserAccount(options) {
838
+ return UserService.deleteUserAccount(options);
839
+ }
887
840
  ;
888
841
  /**
889
842
  * getMissingFields
@@ -904,15 +857,15 @@ var WebAuth = /** @class */ (function () {
904
857
  * ```
905
858
  *
906
859
  */
907
- WebAuth.prototype.getMissingFields = function (trackId, useSocialProvider) {
860
+ getMissingFields(trackId, useSocialProvider) {
908
861
  if (useSocialProvider) {
909
- var _serviceURL = window.webAuthSettings.authority + "/public-srv/public/trackinfo/" + useSocialProvider.requestId + "/" + trackId;
910
- return Helper_1.Helper.createHttpPromise(undefined, _serviceURL, false, "GET");
862
+ const _serviceURL = window.webAuthSettings.authority + "/public-srv/public/trackinfo/" + useSocialProvider.requestId + "/" + trackId;
863
+ return Helper.createHttpPromise(undefined, _serviceURL, false, "GET");
911
864
  }
912
865
  else {
913
- return TokenService_1.TokenService.getMissingFields(trackId);
866
+ return TokenService.getMissingFields(trackId);
914
867
  }
915
- };
868
+ }
916
869
  ;
917
870
  /**
918
871
  * progressiveRegistration
@@ -920,68 +873,66 @@ var WebAuth = /** @class */ (function () {
920
873
  * @param headers
921
874
  * @returns
922
875
  */
923
- WebAuth.prototype.progressiveRegistration = function (options, headers) {
924
- return LoginService_1.LoginService.progressiveRegistration(options, headers);
925
- };
876
+ progressiveRegistration(options, headers) {
877
+ return LoginService.progressiveRegistration(options, headers);
878
+ }
926
879
  ;
927
880
  /**
928
881
  * device code flow - initiate
929
882
  */
930
- WebAuth.prototype.initiateDeviceCode = function (clientId) {
931
- return TokenService_1.TokenService.initiateDeviceCode(clientId);
932
- };
883
+ initiateDeviceCode(clientId) {
884
+ return TokenService.initiateDeviceCode(clientId);
885
+ }
933
886
  /**
934
887
  * device code flow - verify
935
888
  * @param code
936
889
  */
937
- WebAuth.prototype.deviceCodeVerify = function (code) {
938
- TokenService_1.TokenService.deviceCodeVerify(code);
939
- };
890
+ deviceCodeVerify(code) {
891
+ TokenService.deviceCodeVerify(code);
892
+ }
940
893
  /**
941
894
  * check if an user exists
942
895
  * @param options
943
896
  * @returns
944
897
  */
945
- WebAuth.prototype.userCheckExists = function (options) {
946
- return UserService_1.UserService.userCheckExists(options);
947
- };
898
+ userCheckExists(options) {
899
+ return UserService.userCheckExists(options);
900
+ }
948
901
  ;
949
902
  /**
950
903
  * To set accept language
951
904
  * @param acceptLanguage
952
905
  */
953
- WebAuth.prototype.setAcceptLanguageHeader = function (acceptLanguage) {
906
+ setAcceptLanguageHeader(acceptLanguage) {
954
907
  window.localeSettings = acceptLanguage;
955
- };
908
+ }
956
909
  /**
957
910
  * initiate mfa
958
911
  * @param options
959
912
  * @returns
960
913
  */
961
- WebAuth.prototype.initiateMFA = function (options, accessToken) {
914
+ initiateMFA(options, accessToken) {
962
915
  // TODO: remove accessToken parameter in the next major release
963
916
  if (accessToken) {
964
- return VerificationService_1.VerificationService.initiateMFA(options, accessToken);
917
+ return VerificationService.initiateMFA(options, accessToken);
965
918
  }
966
- return VerificationService_1.VerificationService.initiateMFA(options);
967
- };
919
+ return VerificationService.initiateMFA(options);
920
+ }
968
921
  ;
969
922
  /**
970
923
  * authenticate mfa
971
924
  * @param options
972
925
  * @returns
973
926
  */
974
- WebAuth.prototype.authenticateMFA = function (options) {
975
- return VerificationService_1.VerificationService.authenticateMFA(options);
976
- };
927
+ authenticateMFA(options) {
928
+ return VerificationService.authenticateMFA(options);
929
+ }
977
930
  ;
978
931
  /**
979
932
  * offline token check
980
933
  */
981
- WebAuth.prototype.offlineTokenCheck = function (accessToken) {
982
- return TokenService_1.TokenService.offlineTokenCheck(accessToken);
983
- };
934
+ offlineTokenCheck(accessToken) {
935
+ return TokenService.offlineTokenCheck(accessToken);
936
+ }
984
937
  ;
985
- return WebAuth;
986
- }());
987
- exports.WebAuth = WebAuth;
938
+ }