@qikdev/sdk 1.0.2 → 1.0.4

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.
Files changed (81) hide show
  1. package/README.md +1 -1
  2. package/dist/access.html +16371 -0
  3. package/dist/api.html +1503 -0
  4. package/dist/auth.html +8455 -0
  5. package/dist/cache.html +1135 -0
  6. package/dist/content.html +10067 -0
  7. package/dist/files.html +3415 -0
  8. package/dist/filter.html +4973 -0
  9. package/dist/geo.html +3851 -0
  10. package/dist/global.html +328 -0
  11. package/dist/index.html +96 -0
  12. package/dist/main.js +2 -3
  13. package/dist/module-QikStorage-CookieStorageAdapter.html +1177 -0
  14. package/dist/module-QikStorage-LocalStorageAdapter.html +329 -0
  15. package/dist/module-QikStorage-StorageAdapter.html +3457 -0
  16. package/dist/module-QikStorage.html +1445 -0
  17. package/dist/qik.access.js.html +904 -0
  18. package/dist/qik.api.js.html +409 -0
  19. package/dist/{docs/qik.auth.js.html → qik.auth.js.html} +142 -104
  20. package/dist/qik.cache.js.html +125 -0
  21. package/dist/qik.content.js.html +967 -0
  22. package/dist/qik.core.js.html +322 -0
  23. package/dist/qik.files.js.html +249 -0
  24. package/dist/{docs/qik.filter.js.html → qik.filter.js.html} +2 -2
  25. package/dist/qik.geo.js.html +963 -0
  26. package/dist/qik.socket.js.html +451 -0
  27. package/dist/qik.storage.js.html +375 -0
  28. package/dist/qik.system.js.html +117 -0
  29. package/dist/qik.utils.js.html +1542 -0
  30. package/dist/socket.html +2975 -0
  31. package/dist/{docs/styles → styles}/jsdoc.css +2 -2
  32. package/dist/system.html +523 -0
  33. package/package.json +2 -2
  34. package/src/api/qik.socket.js +18 -12
  35. package/src/version.js +1 -1
  36. package/dist/docs/access.html +0 -3826
  37. package/dist/docs/api.html +0 -1356
  38. package/dist/docs/auth.html +0 -2180
  39. package/dist/docs/cache.html +0 -351
  40. package/dist/docs/content.html +0 -2560
  41. package/dist/docs/files.html +0 -779
  42. package/dist/docs/filter.html +0 -1355
  43. package/dist/docs/index.html +0 -96
  44. package/dist/docs/qik.access.js.html +0 -790
  45. package/dist/docs/qik.api.js.html +0 -511
  46. package/dist/docs/qik.cache.js.html +0 -131
  47. package/dist/docs/qik.content.js.html +0 -918
  48. package/dist/docs/qik.core.js.html +0 -301
  49. package/dist/docs/qik.files.js.html +0 -219
  50. package/dist/docs/qik.socket.js.html +0 -416
  51. package/dist/docs/qik.system.js.html +0 -117
  52. package/dist/docs/qik.utils.js.html +0 -1467
  53. package/dist/docs/socket.html +0 -810
  54. package/dist/docs/system.html +0 -197
  55. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Bold.eot +0 -0
  56. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Bold.ttf +0 -0
  57. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Bold.woff +0 -0
  58. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Bold.woff2 +0 -0
  59. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Regular.eot +0 -0
  60. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Regular.ttf +0 -0
  61. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Regular.woff +0 -0
  62. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Regular.woff2 +0 -0
  63. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  64. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  65. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  66. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  67. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  68. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  69. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  70. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  71. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  72. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  73. /package/dist/{docs/scripts → scripts}/collapse.js +0 -0
  74. /package/dist/{docs/scripts → scripts}/linenumber.js +0 -0
  75. /package/dist/{docs/scripts → scripts}/nav.js +0 -0
  76. /package/dist/{docs/scripts → scripts}/polyfill.js +0 -0
  77. /package/dist/{docs/scripts → scripts}/prettify/Apache-License-2.0.txt +0 -0
  78. /package/dist/{docs/scripts → scripts}/prettify/lang-css.js +0 -0
  79. /package/dist/{docs/scripts → scripts}/prettify/prettify.js +0 -0
  80. /package/dist/{docs/scripts → scripts}/search.js +0 -0
  81. /package/dist/{docs/styles → styles}/prettify.css +0 -0
@@ -1,2180 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>auth - Documentation</title>
7
-
8
-
9
- <script src="scripts/prettify/prettify.js"></script>
10
- <script src="scripts/prettify/lang-css.js"></script>
11
- <!--[if lt IE 9]>
12
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
- <![endif]-->
14
- <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
- <script src="scripts/nav.js" defer></script>
17
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
- </head>
19
- <body>
20
-
21
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
22
- <label for="nav-trigger" class="navicon-button x">
23
- <div class="navicon"></div>
24
- </label>
25
-
26
- <label for="nav-trigger" class="overlay"></label>
27
-
28
- <nav >
29
-
30
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="access.html">access</a><ul class='methods'><li data-type='method'><a href="access.html#.actionableScopes">actionableScopes</a></li><li data-type='method'><a href="access.html#.allPermissions">allPermissions</a></li><li data-type='method'><a href="access.html#.allPermissionTypes">allPermissionTypes</a></li><li data-type='method'><a href="access.html#.allUserScopes">allUserScopes</a></li><li data-type='method'><a href="access.html#.canCreate">canCreate</a></li><li data-type='method'><a href="access.html#.canDeleteItem">canDeleteItem</a></li><li data-type='method'><a href="access.html#.canEditItem">canEditItem</a></li><li data-type='method'><a href="access.html#.canEraseItem">canEraseItem</a></li><li data-type='method'><a href="access.html#.canKnowOf">canKnowOf</a></li><li data-type='method'><a href="access.html#.canListItem">canListItem</a></li><li data-type='method'><a href="access.html#.canRestoreItem">canRestoreItem</a></li><li data-type='method'><a href="access.html#.canViewItem">canViewItem</a></li><li data-type='method'><a href="access.html#.checkActionAccess">checkActionAccess</a></li><li data-type='method'><a href="access.html#.getAllDescendants">getAllDescendants</a></li><li data-type='method'><a href="access.html#.has">has</a></li><li data-type='method'><a href="access.html#.hashPermissions">hashPermissions</a></li><li data-type='method'><a href="access.html#.isAdministrator">isAdministrator</a></li><li data-type='method'><a href="access.html#.isOwner">isOwner</a></li></ul></li><li><a href="api.html">api</a><ul class='methods'><li data-type='method'><a href="api.html#.delete">delete</a></li><li data-type='method'><a href="api.html#.generateEndpointURL">generateEndpointURL</a></li><li data-type='method'><a href="api.html#.get">get</a></li><li data-type='method'><a href="api.html#.patch">patch</a></li><li data-type='method'><a href="api.html#.post">post</a></li><li data-type='method'><a href="api.html#.put">put</a></li></ul></li><li><a href="auth.html">auth</a><ul class='methods'><li data-type='method'><a href="auth.html#.changeOrganisation">changeOrganisation</a></li><li data-type='method'><a href="auth.html#.ensureValidToken">ensureValidToken</a></li><li data-type='method'><a href="auth.html#.getCurrentToken">getCurrentToken</a></li><li data-type='method'><a href="auth.html#.getCurrentUser">getCurrentUser</a></li><li data-type='method'><a href="auth.html#.impersonate">impersonate</a></li><li data-type='method'><a href="auth.html#.login">login</a></li><li data-type='method'><a href="auth.html#.logout">logout</a></li><li data-type='method'><a href="auth.html#.retrieveUserFromResetToken">retrieveUserFromResetToken</a></li><li data-type='method'><a href="auth.html#.sendResetPasswordRequest">sendResetPasswordRequest</a></li><li data-type='method'><a href="auth.html#.set">set</a></li><li data-type='method'><a href="auth.html#.sync">sync</a></li><li data-type='method'><a href="auth.html#.updateUserWithToken">updateUserWithToken</a></li></ul></li><li><a href="cache.html">cache</a><ul class='methods'><li data-type='method'><a href="cache.html#.get">get</a></li><li data-type='method'><a href="cache.html#.reset">reset</a></li></ul></li><li><a href="content.html">content</a><ul class='methods'><li data-type='method'><a href="content.html#.create">create</a></li><li data-type='method'><a href="content.html#.delete">delete</a></li><li data-type='method'><a href="content.html#.get">get</a></li><li data-type='method'><a href="content.html#.getFromSlug">getFromSlug</a></li><li data-type='method'><a href="content.html#.glossary">glossary</a></li><li data-type='method'><a href="content.html#.list">list</a></li><li data-type='method'><a href="content.html#.patch">patch</a></li><li data-type='method'><a href="content.html#.restore">restore</a></li><li data-type='method'><a href="content.html#.scopeGlossary">scopeGlossary</a></li><li data-type='method'><a href="content.html#.update">update</a></li><li data-type='method'><a href="content.html#.validateField">validateField</a></li><li data-type='method'><a href="content.html#.variables">variables</a></li></ul></li><li><a href="files.html">files</a><ul class='methods'><li data-type='method'><a href="files.html#.downloadUrl">downloadUrl</a></li><li data-type='method'><a href="files.html#.filesize">filesize</a></li><li data-type='method'><a href="files.html#.getBinaryTypeFromMime">getBinaryTypeFromMime</a></li><li data-type='method'><a href="files.html#.mediaUrl">mediaUrl</a></li></ul></li><li><a href="filter.html">filter</a><ul class='methods'><li data-type='method'><a href="filter.html#.activeFilterKeys">activeFilterKeys</a></li><li data-type='method'><a href="filter.html#.activeFilterKeys">activeFilterKeys</a></li><li data-type='method'><a href="filter.html#.activeFilterOperators">activeFilterOperators</a></li><li data-type='method'><a href="filter.html#.activeFilters">activeFilters</a></li><li data-type='method'><a href="filter.html#.activeFilterValues">activeFilterValues</a></li><li data-type='method'><a href="filter.html#.filterChangeString">filterChangeString</a></li><li data-type='method'><a href="filter.html#.isValidFilter">isValidFilter</a></li></ul></li><li><a href="socket.html">socket</a><ul class='methods'><li data-type='method'><a href="socket.html#.channel">channel</a></li><li data-type='method'><a href="socket.html#.close">close</a></li><li data-type='method'><a href="socket.html#.connect">connect</a></li><li data-type='method'><a href="socket.html#.reconnect">reconnect</a></li><li data-type='method'><a href="socket.html#.subscribe">subscribe</a></li><li data-type='method'><a href="socket.html#.unsubscribe">unsubscribe</a></li></ul></li><li><a href="system.html">system</a><ul class='methods'><li data-type='method'><a href="system.html#.countries">countries</a></li></ul></li></ul>
31
- </nav>
32
-
33
- <div id="main">
34
-
35
- <h1 class="page-title">auth</h1>
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
- <section>
44
-
45
- <header>
46
-
47
- <h2>
48
- auth
49
- </h2>
50
-
51
-
52
- </header>
53
-
54
- <article>
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
- <h3 class="subsection-title">Methods</h3>
73
-
74
-
75
-
76
-
77
-
78
-
79
- <h4 class="name" id=".changeOrganisation"><span class="type-signature">(static) </span>changeOrganisation<span class="signature">(organisation, options)</span><span class="type-signature"></span></h4>
80
-
81
-
82
-
83
-
84
-
85
-
86
- <dl class="details">
87
-
88
-
89
- <dt class="tag-source">Source:</dt>
90
- <dd class="tag-source"><ul class="dummy"><li>
91
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line122">line 122</a>
92
- </li></ul></dd>
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
- </dl>
125
-
126
-
127
-
128
-
129
-
130
- <div class="description usertext">
131
- Manually set current user session
132
- </div>
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
- <h5>Example</h5>
143
-
144
- <pre class="prettyprint"><code>sdk.auth.changeOrganisation('61eca4746971e75c1fc670cf');
145
- // Current user session will be automatically updated
146
-
147
- const newSession = await sdk.auth.changeOrganisation('61eca4746971e75c1fc670cf', {disableAutoAuthentication:true});
148
- // Current user session will not be updated
149
- sdk.auth.set(newSession);</code></pre>
150
-
151
-
152
-
153
-
154
- <h5>Parameters:</h5>
155
-
156
-
157
- <table class="params">
158
- <thead>
159
- <tr>
160
-
161
- <th>Name</th>
162
-
163
-
164
- <th>Type</th>
165
-
166
-
167
-
168
-
169
-
170
- <th class="last">Description</th>
171
- </tr>
172
- </thead>
173
-
174
- <tbody>
175
-
176
-
177
- <tr>
178
-
179
- <td class="name"><code>organisation</code></td>
180
-
181
-
182
- <td class="type">
183
-
184
-
185
- <span class="param-type">String</span>
186
- |
187
-
188
- <span class="param-type">Object</span>
189
-
190
-
191
-
192
- </td>
193
-
194
-
195
-
196
-
197
-
198
- <td class="description last">The id of the organisation to switch into</td>
199
- </tr>
200
-
201
-
202
-
203
- <tr>
204
-
205
- <td class="name"><code>options</code></td>
206
-
207
-
208
- <td class="type">
209
-
210
-
211
- <span class="param-type">Object</span>
212
-
213
-
214
-
215
- </td>
216
-
217
-
218
-
219
-
220
-
221
- <td class="description last">Additional options
222
- <h6>Properties</h6>
223
-
224
-
225
- <table class="params">
226
- <thead>
227
- <tr>
228
-
229
- <th>Name</th>
230
-
231
-
232
- <th>Type</th>
233
-
234
-
235
-
236
-
237
-
238
- <th class="last">Description</th>
239
- </tr>
240
- </thead>
241
-
242
- <tbody>
243
-
244
-
245
- <tr>
246
-
247
- <td class="name"><code>disableAutoAuthentication</code></td>
248
-
249
-
250
- <td class="type">
251
-
252
-
253
- <span class="param-type">Boolean</span>
254
-
255
-
256
-
257
- </td>
258
-
259
-
260
-
261
-
262
-
263
- <td class="description last">By default when switching organisation, the current user session
264
- will be updated to reflect a session in the new organisation, you can use this option to disable that behavior and instead return the
265
- user session without dispatching any events</td>
266
- </tr>
267
-
268
-
269
- </tbody>
270
- </table>
271
-
272
- </td>
273
- </tr>
274
-
275
-
276
- </tbody>
277
- </table>
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
- <h4 class="name" id=".ensureValidToken"><span class="type-signature">(static) </span>ensureValidToken<span class="signature">(forceRefresh)</span><span class="type-signature"></span></h4>
303
-
304
-
305
-
306
-
307
-
308
-
309
- <dl class="details">
310
-
311
-
312
- <dt class="tag-source">Source:</dt>
313
- <dd class="tag-source"><ul class="dummy"><li>
314
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line580">line 580</a>
315
- </li></ul></dd>
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
- </dl>
348
-
349
-
350
-
351
-
352
-
353
- <div class="description usertext">
354
- This function forces a check to ensure that the current access token has not expired.
355
- If the token has expired, the user session will be refreshed with a new token.
356
- </div>
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
-
366
- <h5>Example</h5>
367
-
368
- <pre class="prettyprint"><code>// Check to ensure that the current access token is valid
369
- sdk.auth.ensureValidToken();
370
-
371
- // Force the token to be refreshed, even if the current token in use has not yet expired.
372
- sdk.auth.ensureValidToken(true);</code></pre>
373
-
374
-
375
-
376
-
377
- <h5>Parameters:</h5>
378
-
379
-
380
- <table class="params">
381
- <thead>
382
- <tr>
383
-
384
- <th>Name</th>
385
-
386
-
387
- <th>Type</th>
388
-
389
-
390
-
391
-
392
-
393
- <th class="last">Description</th>
394
- </tr>
395
- </thead>
396
-
397
- <tbody>
398
-
399
-
400
- <tr>
401
-
402
- <td class="name"><code>forceRefresh</code></td>
403
-
404
-
405
- <td class="type">
406
-
407
-
408
- <span class="param-type">Boolean</span>
409
-
410
-
411
-
412
- </td>
413
-
414
-
415
-
416
-
417
-
418
- <td class="description last">Whether to force the current token to be refreshed, even if it has not yet expired.</td>
419
- </tr>
420
-
421
-
422
- </tbody>
423
- </table>
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
- <h4 class="name" id=".getCurrentToken"><span class="type-signature">(static) </span>getCurrentToken<span class="signature">()</span><span class="type-signature"></span></h4>
449
-
450
-
451
-
452
-
453
-
454
-
455
- <dl class="details">
456
-
457
-
458
- <dt class="tag-source">Source:</dt>
459
- <dd class="tag-source"><ul class="dummy"><li>
460
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line778">line 778</a>
461
- </li></ul></dd>
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
-
479
-
480
-
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
- </dl>
494
-
495
-
496
-
497
-
498
-
499
- <div class="description usertext">
500
- Retrieves the current access token. If the user is authenticated
501
- the response will be the current user's access token, otherwise will fall back to the
502
- applications token.
503
- </div>
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
- <h5>Example</h5>
514
-
515
- <pre class="prettyprint"><code>const currentAccessToken = sdk.auth.getCurrentToken();</code></pre>
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
- <h4 class="name" id=".getCurrentUser"><span class="type-signature">(static) </span>getCurrentUser<span class="signature">()</span><span class="type-signature"></span></h4>
543
-
544
-
545
-
546
-
547
-
548
-
549
- <dl class="details">
550
-
551
-
552
- <dt class="tag-source">Source:</dt>
553
- <dd class="tag-source"><ul class="dummy"><li>
554
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line765">line 765</a>
555
- </li></ul></dd>
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
- </dl>
588
-
589
-
590
-
591
-
592
-
593
- <div class="description usertext">
594
- Retrieves the current user session
595
- </div>
596
-
597
-
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
- <h5>Example</h5>
606
-
607
- <pre class="prettyprint"><code>const me = sdk.auth.getCurrentUser();</code></pre>
608
-
609
-
610
-
611
-
612
-
613
-
614
-
615
-
616
-
617
-
618
-
619
-
620
-
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
- <h4 class="name" id=".impersonate"><span class="type-signature">(static) </span>impersonate<span class="signature">(persona, options)</span><span class="type-signature"></span></h4>
635
-
636
-
637
-
638
-
639
-
640
-
641
- <dl class="details">
642
-
643
-
644
- <dt class="tag-source">Source:</dt>
645
- <dd class="tag-source"><ul class="dummy"><li>
646
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line181">line 181</a>
647
- </li></ul></dd>
648
-
649
-
650
-
651
-
652
-
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
- </dl>
680
-
681
-
682
-
683
-
684
-
685
- <div class="description usertext">
686
- Impersonate another user within your organisation
687
- </div>
688
-
689
-
690
-
691
-
692
-
693
-
694
-
695
-
696
-
697
- <h5>Example</h5>
698
-
699
- <pre class="prettyprint"><code>sdk.auth.impersonate('61eca4746971e75c1fc670cf');
700
- // Current user session will be automatically updated
701
-
702
- const newSession = await sdk.auth.impersonate('61eca4746971e75c1fc670cf', {disableAutoAuthentication:true});
703
- // Current user session will not be updated
704
- sdk.auth.set(newSession);</code></pre>
705
-
706
-
707
-
708
-
709
- <h5>Parameters:</h5>
710
-
711
-
712
- <table class="params">
713
- <thead>
714
- <tr>
715
-
716
- <th>Name</th>
717
-
718
-
719
- <th>Type</th>
720
-
721
-
722
-
723
-
724
-
725
- <th class="last">Description</th>
726
- </tr>
727
- </thead>
728
-
729
- <tbody>
730
-
731
-
732
- <tr>
733
-
734
- <td class="name"><code>persona</code></td>
735
-
736
-
737
- <td class="type">
738
-
739
-
740
- <span class="param-type">String</span>
741
- |
742
-
743
- <span class="param-type">Object</span>
744
-
745
-
746
-
747
- </td>
748
-
749
-
750
-
751
-
752
-
753
- <td class="description last">The id of the user persona you want to impersonate</td>
754
- </tr>
755
-
756
-
757
-
758
- <tr>
759
-
760
- <td class="name"><code>options</code></td>
761
-
762
-
763
- <td class="type">
764
-
765
-
766
- <span class="param-type">Object</span>
767
-
768
-
769
-
770
- </td>
771
-
772
-
773
-
774
-
775
-
776
- <td class="description last">Additional options
777
- <h6>Properties</h6>
778
-
779
-
780
- <table class="params">
781
- <thead>
782
- <tr>
783
-
784
- <th>Name</th>
785
-
786
-
787
- <th>Type</th>
788
-
789
-
790
-
791
-
792
-
793
- <th class="last">Description</th>
794
- </tr>
795
- </thead>
796
-
797
- <tbody>
798
-
799
-
800
- <tr>
801
-
802
- <td class="name"><code>disableAutoAuthentication</code></td>
803
-
804
-
805
- <td class="type">
806
-
807
-
808
- <span class="param-type">Boolean</span>
809
-
810
-
811
-
812
- </td>
813
-
814
-
815
-
816
-
817
-
818
- <td class="description last">By default when impersonating a user, the current user session
819
- will be updated automatically to reflect the new session, you can use this option to disable that behavior and instead return the
820
- new impersonation user session without dispatching any events</td>
821
- </tr>
822
-
823
-
824
- </tbody>
825
- </table>
826
-
827
- </td>
828
- </tr>
829
-
830
-
831
- </tbody>
832
- </table>
833
-
834
-
835
-
836
-
837
-
838
-
839
-
840
-
841
-
842
-
843
-
844
-
845
-
846
-
847
-
848
-
849
-
850
-
851
-
852
-
853
-
854
-
855
-
856
-
857
- <h4 class="name" id=".login"><span class="type-signature">(static) </span>login<span class="signature">(credentials, options)</span><span class="type-signature"></span></h4>
858
-
859
-
860
-
861
-
862
-
863
-
864
- <dl class="details">
865
-
866
-
867
- <dt class="tag-source">Source:</dt>
868
- <dd class="tag-source"><ul class="dummy"><li>
869
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line246">line 246</a>
870
- </li></ul></dd>
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
-
881
-
882
-
883
-
884
-
885
-
886
-
887
-
888
-
889
-
890
-
891
-
892
-
893
-
894
-
895
-
896
-
897
-
898
-
899
-
900
-
901
-
902
- </dl>
903
-
904
-
905
-
906
-
907
-
908
- <div class="description usertext">
909
- Login and authenticate as a user
910
- </div>
911
-
912
-
913
-
914
-
915
-
916
-
917
-
918
-
919
-
920
- <h5>Example</h5>
921
-
922
- <pre class="prettyprint"><code>const credentials = {
923
- email:'me@email.com',
924
- password:'******',
925
- mfa:'1234',
926
- }
927
-
928
- sdk.auth.login(credentials);
929
- // Current user session will be automatically updated
930
-
931
- const newSession = await sdk.auth.login(credentials, {disableAutoAuthentication:true});
932
- // Current user session will not be updated
933
- sdk.auth.set(newSession);</code></pre>
934
-
935
-
936
-
937
-
938
- <h5>Parameters:</h5>
939
-
940
-
941
- <table class="params">
942
- <thead>
943
- <tr>
944
-
945
- <th>Name</th>
946
-
947
-
948
- <th>Type</th>
949
-
950
-
951
-
952
-
953
-
954
- <th class="last">Description</th>
955
- </tr>
956
- </thead>
957
-
958
- <tbody>
959
-
960
-
961
- <tr>
962
-
963
- <td class="name"><code>credentials</code></td>
964
-
965
-
966
- <td class="type">
967
-
968
-
969
- <span class="param-type">Object</span>
970
-
971
-
972
-
973
- </td>
974
-
975
-
976
-
977
-
978
-
979
- <td class="description last">The credentials used to login
980
- <h6>Properties</h6>
981
-
982
-
983
- <table class="params">
984
- <thead>
985
- <tr>
986
-
987
- <th>Name</th>
988
-
989
-
990
- <th>Type</th>
991
-
992
-
993
-
994
-
995
-
996
- <th class="last">Description</th>
997
- </tr>
998
- </thead>
999
-
1000
- <tbody>
1001
-
1002
-
1003
- <tr>
1004
-
1005
- <td class="name"><code>email</code></td>
1006
-
1007
-
1008
- <td class="type">
1009
-
1010
-
1011
- <span class="param-type">String</span>
1012
-
1013
-
1014
-
1015
- </td>
1016
-
1017
-
1018
-
1019
-
1020
-
1021
- <td class="description last">The email address to login to</td>
1022
- </tr>
1023
-
1024
-
1025
-
1026
- <tr>
1027
-
1028
- <td class="name"><code>password</code></td>
1029
-
1030
-
1031
- <td class="type">
1032
-
1033
-
1034
- <span class="param-type">String</span>
1035
-
1036
-
1037
-
1038
- </td>
1039
-
1040
-
1041
-
1042
-
1043
-
1044
- <td class="description last">The password to login with</td>
1045
- </tr>
1046
-
1047
-
1048
-
1049
- <tr>
1050
-
1051
- <td class="name"><code>mfa</code></td>
1052
-
1053
-
1054
- <td class="type">
1055
-
1056
-
1057
- <span class="param-type">String</span>
1058
-
1059
-
1060
-
1061
- </td>
1062
-
1063
-
1064
-
1065
-
1066
-
1067
- <td class="description last">The MFA (Multi Factor Authentication) code</td>
1068
- </tr>
1069
-
1070
-
1071
- </tbody>
1072
- </table>
1073
-
1074
- </td>
1075
- </tr>
1076
-
1077
-
1078
-
1079
- <tr>
1080
-
1081
- <td class="name"><code>options</code></td>
1082
-
1083
-
1084
- <td class="type">
1085
-
1086
-
1087
- <span class="param-type">Object</span>
1088
-
1089
-
1090
-
1091
- </td>
1092
-
1093
-
1094
-
1095
-
1096
-
1097
- <td class="description last">Additional options
1098
- <h6>Properties</h6>
1099
-
1100
-
1101
- <table class="params">
1102
- <thead>
1103
- <tr>
1104
-
1105
- <th>Name</th>
1106
-
1107
-
1108
- <th>Type</th>
1109
-
1110
-
1111
-
1112
-
1113
-
1114
- <th class="last">Description</th>
1115
- </tr>
1116
- </thead>
1117
-
1118
- <tbody>
1119
-
1120
-
1121
- <tr>
1122
-
1123
- <td class="name"><code>disableAutoAuthentication</code></td>
1124
-
1125
-
1126
- <td class="type">
1127
-
1128
-
1129
- <span class="param-type">Boolean</span>
1130
-
1131
-
1132
-
1133
- </td>
1134
-
1135
-
1136
-
1137
-
1138
-
1139
- <td class="description last">By default when logging in the current user session
1140
- will be updated automatically to reflect the new session, you can use this option to disable that behavior and instead return the
1141
- session that was logged in to without dispatching any events</td>
1142
- </tr>
1143
-
1144
-
1145
- </tbody>
1146
- </table>
1147
-
1148
- </td>
1149
- </tr>
1150
-
1151
-
1152
- </tbody>
1153
- </table>
1154
-
1155
-
1156
-
1157
-
1158
-
1159
-
1160
-
1161
-
1162
-
1163
-
1164
-
1165
-
1166
-
1167
-
1168
-
1169
-
1170
-
1171
-
1172
-
1173
-
1174
-
1175
-
1176
-
1177
-
1178
- <h4 class="name" id=".logout"><span class="type-signature">(static) </span>logout<span class="signature">()</span><span class="type-signature"></span></h4>
1179
-
1180
-
1181
-
1182
-
1183
-
1184
-
1185
- <dl class="details">
1186
-
1187
-
1188
- <dt class="tag-source">Source:</dt>
1189
- <dd class="tag-source"><ul class="dummy"><li>
1190
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line97">line 97</a>
1191
- </li></ul></dd>
1192
-
1193
-
1194
-
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
-
1202
-
1203
-
1204
-
1205
-
1206
-
1207
-
1208
-
1209
-
1210
-
1211
-
1212
-
1213
-
1214
-
1215
-
1216
-
1217
-
1218
-
1219
-
1220
-
1221
-
1222
-
1223
- </dl>
1224
-
1225
-
1226
-
1227
-
1228
-
1229
- <div class="description usertext">
1230
- Clear the current user session from memory and erase all caches
1231
- </div>
1232
-
1233
-
1234
-
1235
-
1236
-
1237
-
1238
-
1239
-
1240
-
1241
- <h5>Example</h5>
1242
-
1243
- <pre class="prettyprint"><code>sdk.auth.logout();</code></pre>
1244
-
1245
-
1246
-
1247
-
1248
-
1249
-
1250
-
1251
-
1252
-
1253
-
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
-
1262
-
1263
-
1264
-
1265
-
1266
-
1267
-
1268
-
1269
-
1270
- <h4 class="name" id=".retrieveUserFromResetToken"><span class="type-signature">(static) </span>retrieveUserFromResetToken<span class="signature">(resetToken, options)</span><span class="type-signature"></span></h4>
1271
-
1272
-
1273
-
1274
-
1275
-
1276
-
1277
- <dl class="details">
1278
-
1279
-
1280
- <dt class="tag-source">Source:</dt>
1281
- <dd class="tag-source"><ul class="dummy"><li>
1282
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line447">line 447</a>
1283
- </li></ul></dd>
1284
-
1285
-
1286
-
1287
-
1288
-
1289
-
1290
-
1291
-
1292
-
1293
-
1294
-
1295
-
1296
-
1297
-
1298
-
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
-
1308
-
1309
-
1310
-
1311
-
1312
-
1313
-
1314
-
1315
- </dl>
1316
-
1317
-
1318
-
1319
-
1320
-
1321
- <div class="description usertext">
1322
- Retrieve user session through use of a valid reset token,
1323
- Reset tokens are short lived tokens that can be generated when a user has forgotten their password or their
1324
- password has been reset by an administrator
1325
- </div>
1326
-
1327
-
1328
-
1329
-
1330
-
1331
-
1332
-
1333
-
1334
-
1335
- <h5>Example</h5>
1336
-
1337
- <pre class="prettyprint"><code>const resetToken = 'XXX-324623-$$...';
1338
-
1339
- // Retrieve the user session by providing a reset token
1340
- const user = await sdk.auth.retrieveUserFromResetToken(resetToken);</code></pre>
1341
-
1342
-
1343
-
1344
-
1345
- <h5>Parameters:</h5>
1346
-
1347
-
1348
- <table class="params">
1349
- <thead>
1350
- <tr>
1351
-
1352
- <th>Name</th>
1353
-
1354
-
1355
- <th>Type</th>
1356
-
1357
-
1358
-
1359
-
1360
-
1361
- <th class="last">Description</th>
1362
- </tr>
1363
- </thead>
1364
-
1365
- <tbody>
1366
-
1367
-
1368
- <tr>
1369
-
1370
- <td class="name"><code>resetToken</code></td>
1371
-
1372
-
1373
- <td class="type">
1374
-
1375
-
1376
- <span class="param-type">String</span>
1377
-
1378
-
1379
-
1380
- </td>
1381
-
1382
-
1383
-
1384
-
1385
-
1386
- <td class="description last">The token to use to authenticate</td>
1387
- </tr>
1388
-
1389
-
1390
-
1391
- <tr>
1392
-
1393
- <td class="name"><code>options</code></td>
1394
-
1395
-
1396
- <td class="type">
1397
-
1398
-
1399
- <span class="param-type">Object</span>
1400
-
1401
-
1402
-
1403
- </td>
1404
-
1405
-
1406
-
1407
-
1408
-
1409
- <td class="description last">Additional options for the request</td>
1410
- </tr>
1411
-
1412
-
1413
- </tbody>
1414
- </table>
1415
-
1416
-
1417
-
1418
-
1419
-
1420
-
1421
-
1422
-
1423
-
1424
-
1425
-
1426
-
1427
-
1428
-
1429
-
1430
-
1431
-
1432
-
1433
-
1434
-
1435
-
1436
-
1437
-
1438
-
1439
- <h4 class="name" id=".sendResetPasswordRequest"><span class="type-signature">(static) </span>sendResetPasswordRequest<span class="signature">(body)</span><span class="type-signature"></span></h4>
1440
-
1441
-
1442
-
1443
-
1444
-
1445
-
1446
- <dl class="details">
1447
-
1448
-
1449
- <dt class="tag-source">Source:</dt>
1450
- <dd class="tag-source"><ul class="dummy"><li>
1451
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line536">line 536</a>
1452
- </li></ul></dd>
1453
-
1454
-
1455
-
1456
-
1457
-
1458
-
1459
-
1460
-
1461
-
1462
-
1463
-
1464
-
1465
-
1466
-
1467
-
1468
-
1469
-
1470
-
1471
-
1472
-
1473
-
1474
-
1475
-
1476
-
1477
-
1478
-
1479
-
1480
-
1481
-
1482
-
1483
-
1484
- </dl>
1485
-
1486
-
1487
-
1488
-
1489
-
1490
- <div class="description usertext">
1491
- This function allows a reset token to be generated and emailed to the requesting user
1492
- allowing them to modify their user details
1493
- </div>
1494
-
1495
-
1496
-
1497
-
1498
-
1499
-
1500
-
1501
-
1502
-
1503
- <h5>Example</h5>
1504
-
1505
- <pre class="prettyprint"><code>const resetToken = 'XXX-324623-$$...';
1506
-
1507
- // Retrieve the user session by providing a reset token
1508
- const user = await sdk.auth.retrieveUserFromResetToken(resetToken);</code></pre>
1509
-
1510
-
1511
-
1512
-
1513
- <h5>Parameters:</h5>
1514
-
1515
-
1516
- <table class="params">
1517
- <thead>
1518
- <tr>
1519
-
1520
- <th>Name</th>
1521
-
1522
-
1523
- <th>Type</th>
1524
-
1525
-
1526
-
1527
-
1528
-
1529
- <th class="last">Description</th>
1530
- </tr>
1531
- </thead>
1532
-
1533
- <tbody>
1534
-
1535
-
1536
- <tr>
1537
-
1538
- <td class="name"><code>body</code></td>
1539
-
1540
-
1541
- <td class="type">
1542
-
1543
-
1544
- <span class="param-type">Object</span>
1545
-
1546
-
1547
-
1548
- </td>
1549
-
1550
-
1551
-
1552
-
1553
-
1554
- <td class="description last">Details for the reset request
1555
- <h6>Properties</h6>
1556
-
1557
-
1558
- <table class="params">
1559
- <thead>
1560
- <tr>
1561
-
1562
- <th>Name</th>
1563
-
1564
-
1565
- <th>Type</th>
1566
-
1567
-
1568
-
1569
-
1570
-
1571
- <th class="last">Description</th>
1572
- </tr>
1573
- </thead>
1574
-
1575
- <tbody>
1576
-
1577
-
1578
- <tr>
1579
-
1580
- <td class="name"><code>email</code></td>
1581
-
1582
-
1583
- <td class="type">
1584
-
1585
-
1586
- <span class="param-type">String</span>
1587
-
1588
-
1589
-
1590
- </td>
1591
-
1592
-
1593
-
1594
-
1595
-
1596
- <td class="description last">The email of the user to generate a token for</td>
1597
- </tr>
1598
-
1599
-
1600
- </tbody>
1601
- </table>
1602
-
1603
- </td>
1604
- </tr>
1605
-
1606
-
1607
- </tbody>
1608
- </table>
1609
-
1610
-
1611
-
1612
-
1613
-
1614
-
1615
-
1616
-
1617
-
1618
-
1619
-
1620
-
1621
-
1622
-
1623
-
1624
-
1625
-
1626
-
1627
-
1628
-
1629
-
1630
-
1631
-
1632
-
1633
- <h4 class="name" id=".set"><span class="type-signature">(static) </span>set<span class="signature">(user, parameters, stopDispatch)</span><span class="type-signature"></span></h4>
1634
-
1635
-
1636
-
1637
-
1638
-
1639
-
1640
- <dl class="details">
1641
-
1642
-
1643
- <dt class="tag-source">Source:</dt>
1644
- <dd class="tag-source"><ul class="dummy"><li>
1645
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line76">line 76</a>
1646
- </li></ul></dd>
1647
-
1648
-
1649
-
1650
-
1651
-
1652
-
1653
-
1654
-
1655
-
1656
-
1657
-
1658
-
1659
-
1660
-
1661
-
1662
-
1663
-
1664
-
1665
-
1666
-
1667
-
1668
-
1669
-
1670
-
1671
-
1672
-
1673
-
1674
-
1675
-
1676
-
1677
-
1678
- </dl>
1679
-
1680
-
1681
-
1682
-
1683
-
1684
- <div class="description usertext">
1685
- Manually set current user session
1686
- </div>
1687
-
1688
-
1689
-
1690
-
1691
-
1692
-
1693
-
1694
-
1695
-
1696
- <h5>Example</h5>
1697
-
1698
- <pre class="prettyprint"><code>const userSession = {_id:'61eca4746971e75c1fc670cf', firstName:'Daffy', lastName:'Duck' ...};
1699
- sdk.auth.set(userSession);</code></pre>
1700
-
1701
-
1702
-
1703
-
1704
- <h5>Parameters:</h5>
1705
-
1706
-
1707
- <table class="params">
1708
- <thead>
1709
- <tr>
1710
-
1711
- <th>Name</th>
1712
-
1713
-
1714
- <th>Type</th>
1715
-
1716
-
1717
-
1718
-
1719
-
1720
- <th class="last">Description</th>
1721
- </tr>
1722
- </thead>
1723
-
1724
- <tbody>
1725
-
1726
-
1727
- <tr>
1728
-
1729
- <td class="name"><code>user</code></td>
1730
-
1731
-
1732
- <td class="type">
1733
-
1734
-
1735
- <span class="param-type">Object</span>
1736
-
1737
-
1738
-
1739
- </td>
1740
-
1741
-
1742
-
1743
-
1744
-
1745
- <td class="description last">The user session object to set as the current user session</td>
1746
- </tr>
1747
-
1748
-
1749
-
1750
- <tr>
1751
-
1752
- <td class="name"><code>parameters</code></td>
1753
-
1754
-
1755
- <td class="type">
1756
-
1757
-
1758
- <span class="param-type">Object</span>
1759
-
1760
-
1761
-
1762
- </td>
1763
-
1764
-
1765
-
1766
-
1767
-
1768
- <td class="description last">Additional parameters to dispatch</td>
1769
- </tr>
1770
-
1771
-
1772
-
1773
- <tr>
1774
-
1775
- <td class="name"><code>stopDispatch</code></td>
1776
-
1777
-
1778
- <td class="type">
1779
-
1780
-
1781
- <span class="param-type">Boolean</span>
1782
-
1783
-
1784
-
1785
- </td>
1786
-
1787
-
1788
-
1789
-
1790
-
1791
- <td class="description last">Whether to supress dispatching a 'change' event.</td>
1792
- </tr>
1793
-
1794
-
1795
- </tbody>
1796
- </table>
1797
-
1798
-
1799
-
1800
-
1801
-
1802
-
1803
-
1804
-
1805
-
1806
-
1807
-
1808
-
1809
-
1810
-
1811
-
1812
-
1813
-
1814
-
1815
-
1816
-
1817
-
1818
-
1819
-
1820
-
1821
- <h4 class="name" id=".sync"><span class="type-signature">(static) </span>sync<span class="signature">()</span><span class="type-signature"></span></h4>
1822
-
1823
-
1824
-
1825
-
1826
-
1827
-
1828
- <dl class="details">
1829
-
1830
-
1831
- <dt class="tag-source">Source:</dt>
1832
- <dd class="tag-source"><ul class="dummy"><li>
1833
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line721">line 721</a>
1834
- </li></ul></dd>
1835
-
1836
-
1837
-
1838
-
1839
-
1840
-
1841
-
1842
-
1843
-
1844
-
1845
-
1846
-
1847
-
1848
-
1849
-
1850
-
1851
-
1852
-
1853
-
1854
-
1855
-
1856
-
1857
-
1858
-
1859
-
1860
-
1861
-
1862
-
1863
-
1864
-
1865
-
1866
- </dl>
1867
-
1868
-
1869
-
1870
-
1871
-
1872
- <div class="description usertext">
1873
- A useful function to sync the current user session with the server.
1874
- </div>
1875
-
1876
-
1877
-
1878
-
1879
-
1880
-
1881
-
1882
-
1883
-
1884
- <h5>Example</h5>
1885
-
1886
- <pre class="prettyprint"><code>// Makes request to the API and updates the current user session to match the response
1887
- sdk.auth.sync();</code></pre>
1888
-
1889
-
1890
-
1891
-
1892
-
1893
-
1894
-
1895
-
1896
-
1897
-
1898
-
1899
-
1900
-
1901
-
1902
-
1903
-
1904
-
1905
-
1906
-
1907
-
1908
-
1909
-
1910
-
1911
-
1912
-
1913
-
1914
- <h4 class="name" id=".updateUserWithToken"><span class="type-signature">(static) </span>updateUserWithToken<span class="signature">(resetToken, body, options)</span><span class="type-signature"></span></h4>
1915
-
1916
-
1917
-
1918
-
1919
-
1920
-
1921
- <dl class="details">
1922
-
1923
-
1924
- <dt class="tag-source">Source:</dt>
1925
- <dd class="tag-source"><ul class="dummy"><li>
1926
- <a href="qik.auth.js.html">qik.auth.js</a>, <a href="qik.auth.js.html#line483">line 483</a>
1927
- </li></ul></dd>
1928
-
1929
-
1930
-
1931
-
1932
-
1933
-
1934
-
1935
-
1936
-
1937
-
1938
-
1939
-
1940
-
1941
-
1942
-
1943
-
1944
-
1945
-
1946
-
1947
-
1948
-
1949
-
1950
-
1951
-
1952
-
1953
-
1954
-
1955
-
1956
-
1957
-
1958
-
1959
- </dl>
1960
-
1961
-
1962
-
1963
-
1964
-
1965
- <div class="description usertext">
1966
- Update a user's credentials through use of a reset token
1967
- </div>
1968
-
1969
-
1970
-
1971
-
1972
-
1973
-
1974
-
1975
-
1976
-
1977
- <h5>Example</h5>
1978
-
1979
- <pre class="prettyprint"><code>const resetToken = 'XXX-324623-$$...';
1980
-
1981
- // Retrieve the user session by providing a reset token
1982
- const user = await sdk.auth.retrieveUserFromResetToken(resetToken);</code></pre>
1983
-
1984
-
1985
-
1986
-
1987
- <h5>Parameters:</h5>
1988
-
1989
-
1990
- <table class="params">
1991
- <thead>
1992
- <tr>
1993
-
1994
- <th>Name</th>
1995
-
1996
-
1997
- <th>Type</th>
1998
-
1999
-
2000
-
2001
-
2002
-
2003
- <th class="last">Description</th>
2004
- </tr>
2005
- </thead>
2006
-
2007
- <tbody>
2008
-
2009
-
2010
- <tr>
2011
-
2012
- <td class="name"><code>resetToken</code></td>
2013
-
2014
-
2015
- <td class="type">
2016
-
2017
-
2018
- <span class="param-type">String</span>
2019
-
2020
-
2021
-
2022
- </td>
2023
-
2024
-
2025
-
2026
-
2027
-
2028
- <td class="description last">The token to use to authenticate</td>
2029
- </tr>
2030
-
2031
-
2032
-
2033
- <tr>
2034
-
2035
- <td class="name"><code>body</code></td>
2036
-
2037
-
2038
- <td class="type">
2039
-
2040
-
2041
- <span class="param-type">Object</span>
2042
-
2043
-
2044
-
2045
- </td>
2046
-
2047
-
2048
-
2049
-
2050
-
2051
- <td class="description last">Updates to be made to the user</td>
2052
- </tr>
2053
-
2054
-
2055
-
2056
- <tr>
2057
-
2058
- <td class="name"><code>options</code></td>
2059
-
2060
-
2061
- <td class="type">
2062
-
2063
-
2064
- <span class="param-type">Object</span>
2065
-
2066
-
2067
-
2068
- </td>
2069
-
2070
-
2071
-
2072
-
2073
-
2074
- <td class="description last">Additional options for the request
2075
- <h6>Properties</h6>
2076
-
2077
-
2078
- <table class="params">
2079
- <thead>
2080
- <tr>
2081
-
2082
- <th>Name</th>
2083
-
2084
-
2085
- <th>Type</th>
2086
-
2087
-
2088
-
2089
-
2090
-
2091
- <th class="last">Description</th>
2092
- </tr>
2093
- </thead>
2094
-
2095
- <tbody>
2096
-
2097
-
2098
- <tr>
2099
-
2100
- <td class="name"><code>disableAutoAuthentication</code></td>
2101
-
2102
-
2103
- <td class="type">
2104
-
2105
-
2106
- <span class="param-type">Boolean</span>
2107
-
2108
-
2109
-
2110
- </td>
2111
-
2112
-
2113
-
2114
-
2115
-
2116
- <td class="description last">By default the current user session
2117
- will be updated automatically to reflect the new updated session, you can use this option to disable that behavior
2118
- and instead return the result without dispatching any events</td>
2119
- </tr>
2120
-
2121
-
2122
- </tbody>
2123
- </table>
2124
-
2125
- </td>
2126
- </tr>
2127
-
2128
-
2129
- </tbody>
2130
- </table>
2131
-
2132
-
2133
-
2134
-
2135
-
2136
-
2137
-
2138
-
2139
-
2140
-
2141
-
2142
-
2143
-
2144
-
2145
-
2146
-
2147
-
2148
-
2149
-
2150
-
2151
-
2152
-
2153
-
2154
-
2155
-
2156
- </article>
2157
-
2158
- </section>
2159
-
2160
-
2161
-
2162
-
2163
-
2164
-
2165
- </div>
2166
-
2167
- <br class="clear">
2168
-
2169
- <footer>
2170
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Sep 28 2023 07:24:39 GMT+1000 (Australian Eastern Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2171
- </footer>
2172
-
2173
- <script>prettyPrint();</script>
2174
- <script src="scripts/polyfill.js"></script>
2175
- <script src="scripts/linenumber.js"></script>
2176
-
2177
-
2178
-
2179
- </body>
2180
- </html>