@sudoplatform/sudo-user 10.0.1 → 11.0.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/docs/assets/highlight.css +2 -2
- package/docs/assets/main.js +4 -2
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +446 -610
- package/docs/classes/AlreadyRegisteredError.html +163 -8
- package/docs/classes/DefaultSudoUserClient.html +568 -55
- package/docs/classes/IdentityServiceConfigNotFoundError.html +163 -8
- package/docs/classes/LocalAuthenticationProvider.html +131 -12
- package/docs/classes/TESTAuthenticationProvider.html +146 -11
- package/docs/index.html +47 -2
- package/docs/interfaces/AuthenticationProvider.html +89 -6
- package/docs/interfaces/AuthenticationTokens.html +97 -7
- package/docs/interfaces/SudoUserClient.html +431 -78
- package/docs/modules.html +62 -1
- package/lib/client/apiClient.js +9 -25
- package/lib/core/auth-store.js +1 -1
- package/lib/gen/graphql-types.d.ts +5 -4
- package/lib/user/auth.js +1 -3
- package/lib/user/identity-provider.d.ts +7 -0
- package/lib/user/identity-provider.js +32 -13
- package/lib/user/user-client-interface.d.ts +4 -0
- package/lib/user/user-client.d.ts +1 -0
- package/lib/user/user-client.js +33 -21
- package/package.json +54 -46
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
|
@@ -1,68 +1,581 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>DefaultSudoUserClient | @sudoplatform/sudo-user</title><meta name="description" content="Documentation for @sudoplatform/sudo-user"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@sudoplatform/sudo-user</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@sudoplatform/sudo-user</a></li><li><a href="DefaultSudoUserClient.html">DefaultSudoUserClient</a></li></ul><h1>Class DefaultSudoUserClient</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">DefaultSudoUserClient</span></li></ul></section><section class="tsd-panel"><h3>Implements</h3><ul class="tsd-hierarchy"><li><a href="../interfaces/SudoUserClient.html" class="tsd-signature-type" data-tsd-kind="Interface">SudoUserClient</a></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Accessors</h3><ul class="tsd-index-list"><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#sudoKeyManager" class="tsd-kind-icon">sudo<wbr/>Key<wbr/>Manager</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#clearAuthenticationTokens" class="tsd-kind-icon">clear<wbr/>Authentication<wbr/>Tokens</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#deregister" class="tsd-kind-icon">deregister</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getAccessToken" class="tsd-kind-icon">get<wbr/>Access<wbr/>Token</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getIdToken" class="tsd-kind-icon">get<wbr/>Id<wbr/>Token</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getLatestAuthToken" class="tsd-kind-icon">get<wbr/>Latest<wbr/>Auth<wbr/>Token</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getRefreshToken" class="tsd-kind-icon">get<wbr/>Refresh<wbr/>Token</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getRefreshTokenExpiry" class="tsd-kind-icon">get<wbr/>Refresh<wbr/>Token<wbr/>Expiry</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getSubject" class="tsd-kind-icon">get<wbr/>Subject</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getTokenExpiry" class="tsd-kind-icon">get<wbr/>Token<wbr/>Expiry</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getUserClaim" class="tsd-kind-icon">get<wbr/>User<wbr/>Claim</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getUserName" class="tsd-kind-icon">get<wbr/>User<wbr/>Name</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#globalSignOut" class="tsd-kind-icon">global<wbr/>Sign<wbr/>Out</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#isRegistered" class="tsd-kind-icon">is<wbr/>Registered</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#isSignedIn" class="tsd-kind-icon">is<wbr/>Signed<wbr/>In</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#presentFederatedSignInUI" class="tsd-kind-icon">present<wbr/>Federated<wbr/>Sign<wbr/>InUI</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#presentSignOutUI" class="tsd-kind-icon">present<wbr/>Sign<wbr/>OutUI</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#processFederatedSignInTokens" class="tsd-kind-icon">process<wbr/>Federated<wbr/>Sign<wbr/>In<wbr/>Tokens</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#refreshTokens" class="tsd-kind-icon">refresh<wbr/>Tokens</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#registerWithAuthenticationProvider" class="tsd-kind-icon">register<wbr/>With<wbr/>Authentication<wbr/>Provider</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#reset" class="tsd-kind-icon">reset</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#setAuthUI" class="tsd-kind-icon">set<wbr/>AuthUI</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#setAuthenticationStore" class="tsd-kind-icon">set<wbr/>Authentication<wbr/>Store</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#setIdentityProvider" class="tsd-kind-icon">set<wbr/>Identity<wbr/>Provider</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#setLaunchUriFn" class="tsd-kind-icon">set<wbr/>Launch<wbr/>Uri<wbr/>Fn</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#setUserName" class="tsd-kind-icon">set<wbr/>User<wbr/>Name</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#signInWithAuthenticationProvider" class="tsd-kind-icon">sign<wbr/>In<wbr/>With<wbr/>Authentication<wbr/>Provider</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#signInWithKey" class="tsd-kind-icon">sign<wbr/>In<wbr/>With<wbr/>Key</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Default<wbr/>Sudo<wbr/>User<wbr/>Client<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">SudoUserOptions</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="DefaultSudoUserClient.html" class="tsd-signature-type" data-tsd-kind="Class">DefaultSudoUserClient</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in src/user/user-client.ts:54</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <span class="tsd-signature-type">SudoUserOptions</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="DefaultSudoUserClient.html" class="tsd-signature-type" data-tsd-kind="Class">DefaultSudoUserClient</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Accessors</h2><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="sudoKeyManager" class="tsd-anchor"></a><h3>sudo<wbr/>Key<wbr/>Manager</h3><ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> sudoKeyManager<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SudoKeyManager</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#sudoKeyManager">sudoKeyManager</a></p><ul><li>Defined in src/user/user-client.ts:106</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
<
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>DefaultSudoUserClient | @sudoplatform/sudo-user</title><meta name="description" content="Documentation for @sudoplatform/sudo-user"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container">
|
|
3
|
+
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
|
+
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
|
+
<ul class="results">
|
|
6
|
+
<li class="state loading">Preparing search index...</li>
|
|
7
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@sudoplatform/sudo-user</a></div>
|
|
8
|
+
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
9
|
+
<div class="container container-main">
|
|
10
|
+
<div class="col-8 col-content">
|
|
11
|
+
<div class="tsd-page-title">
|
|
12
|
+
<ul class="tsd-breadcrumb">
|
|
13
|
+
<li><a href="../modules.html">@sudoplatform/sudo-user</a></li>
|
|
14
|
+
<li><a href="DefaultSudoUserClient.html">DefaultSudoUserClient</a></li></ul>
|
|
15
|
+
<h1>Class DefaultSudoUserClient</h1></div>
|
|
16
|
+
<section class="tsd-panel tsd-comment">
|
|
17
|
+
<div class="tsd-comment tsd-typography"><p>Interface encapsulating a library of functions for calling Sudo Platform identity service,
|
|
18
|
+
handling federated sign in, managing keys and performing cryptographic operations.</p>
|
|
19
|
+
</div></section>
|
|
20
|
+
<section class="tsd-panel tsd-hierarchy">
|
|
21
|
+
<h4>Hierarchy</h4>
|
|
22
|
+
<ul class="tsd-hierarchy">
|
|
23
|
+
<li><span class="target">DefaultSudoUserClient</span></li></ul></section>
|
|
24
|
+
<section class="tsd-panel">
|
|
25
|
+
<h4>Implements</h4>
|
|
26
|
+
<ul class="tsd-hierarchy">
|
|
27
|
+
<li><a href="../interfaces/SudoUserClient.html" class="tsd-signature-type" data-tsd-kind="Interface">SudoUserClient</a></li></ul></section><aside class="tsd-sources">
|
|
28
|
+
<ul>
|
|
29
|
+
<li>Defined in src/user/user-client.ts:44</li></ul></aside>
|
|
30
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
31
|
+
<section class="tsd-panel tsd-index-panel">
|
|
32
|
+
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
33
|
+
<h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex=0><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></svg> Index</h5></summary>
|
|
34
|
+
<div class="tsd-accordion-details">
|
|
35
|
+
<section class="tsd-index-section">
|
|
36
|
+
<h3 class="tsd-index-heading">Constructors</h3>
|
|
37
|
+
<div class="tsd-index-list"><a href="DefaultSudoUserClient.html#constructor" class="tsd-index-link tsd-kind-constructor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-512-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-512-text"></path></svg><span>constructor</span></a>
|
|
38
|
+
</div></section>
|
|
39
|
+
<section class="tsd-index-section">
|
|
40
|
+
<h3 class="tsd-index-heading">Accessors</h3>
|
|
41
|
+
<div class="tsd-index-list"><a href="DefaultSudoUserClient.html#sudoKeyManager" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-262144-path"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)" id="icon-262144-text"></path></svg><span>sudo<wbr/>Key<wbr/>Manager</span></a>
|
|
42
|
+
</div></section>
|
|
43
|
+
<section class="tsd-index-section">
|
|
44
|
+
<h3 class="tsd-index-heading">Methods</h3>
|
|
45
|
+
<div class="tsd-index-list"><a href="DefaultSudoUserClient.html#clearAuthenticationTokens" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-2048-path"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)" id="icon-2048-text"></path></svg><span>clear<wbr/>Authentication<wbr/>Tokens</span></a>
|
|
46
|
+
<a href="DefaultSudoUserClient.html#deregister" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>deregister</span></a>
|
|
47
|
+
<a href="DefaultSudoUserClient.html#getAccessToken" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Access<wbr/>Token</span></a>
|
|
48
|
+
<a href="DefaultSudoUserClient.html#getIdToken" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Id<wbr/>Token</span></a>
|
|
49
|
+
<a href="DefaultSudoUserClient.html#getLatestAuthToken" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Latest<wbr/>Auth<wbr/>Token</span></a>
|
|
50
|
+
<a href="DefaultSudoUserClient.html#getRefreshToken" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Refresh<wbr/>Token</span></a>
|
|
51
|
+
<a href="DefaultSudoUserClient.html#getRefreshTokenExpiry" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Refresh<wbr/>Token<wbr/>Expiry</span></a>
|
|
52
|
+
<a href="DefaultSudoUserClient.html#getSubject" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Subject</span></a>
|
|
53
|
+
<a href="DefaultSudoUserClient.html#getTokenExpiry" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Token<wbr/>Expiry</span></a>
|
|
54
|
+
<a href="DefaultSudoUserClient.html#getUserClaim" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>User<wbr/>Claim</span></a>
|
|
55
|
+
<a href="DefaultSudoUserClient.html#getUserName" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>User<wbr/>Name</span></a>
|
|
56
|
+
<a href="DefaultSudoUserClient.html#globalSignOut" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>global<wbr/>Sign<wbr/>Out</span></a>
|
|
57
|
+
<a href="DefaultSudoUserClient.html#isRegistered" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>is<wbr/>Registered</span></a>
|
|
58
|
+
<a href="DefaultSudoUserClient.html#isSignedIn" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>is<wbr/>Signed<wbr/>In</span></a>
|
|
59
|
+
<a href="DefaultSudoUserClient.html#presentFederatedSignInUI" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>present<wbr/>Federated<wbr/>Sign<wbr/>InUI</span></a>
|
|
60
|
+
<a href="DefaultSudoUserClient.html#presentSignOutUI" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>present<wbr/>Sign<wbr/>OutUI</span></a>
|
|
61
|
+
<a href="DefaultSudoUserClient.html#processFederatedSignInTokens" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>process<wbr/>Federated<wbr/>Sign<wbr/>In<wbr/>Tokens</span></a>
|
|
62
|
+
<a href="DefaultSudoUserClient.html#refreshTokens" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>refresh<wbr/>Tokens</span></a>
|
|
63
|
+
<a href="DefaultSudoUserClient.html#registerWithAuthenticationProvider" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>register<wbr/>With<wbr/>Authentication<wbr/>Provider</span></a>
|
|
64
|
+
<a href="DefaultSudoUserClient.html#reset" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>reset</span></a>
|
|
65
|
+
<a href="DefaultSudoUserClient.html#setAuthUI" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>set<wbr/>AuthUI</span></a>
|
|
66
|
+
<a href="DefaultSudoUserClient.html#setAuthenticationStore" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>set<wbr/>Authentication<wbr/>Store</span></a>
|
|
67
|
+
<a href="DefaultSudoUserClient.html#setIdentityProvider" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>set<wbr/>Identity<wbr/>Provider</span></a>
|
|
68
|
+
<a href="DefaultSudoUserClient.html#setLaunchUriFn" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>set<wbr/>Launch<wbr/>Uri<wbr/>Fn</span></a>
|
|
69
|
+
<a href="DefaultSudoUserClient.html#setUserName" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>set<wbr/>User<wbr/>Name</span></a>
|
|
70
|
+
<a href="DefaultSudoUserClient.html#signInWithAuthenticationProvider" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>sign<wbr/>In<wbr/>With<wbr/>Authentication<wbr/>Provider</span></a>
|
|
71
|
+
<a href="DefaultSudoUserClient.html#signInWithKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>sign<wbr/>In<wbr/>With<wbr/>Key</span></a>
|
|
72
|
+
<a href="DefaultSudoUserClient.html#signOut" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>sign<wbr/>Out</span></a>
|
|
73
|
+
</div></section></div></details></section></section>
|
|
74
|
+
<section class="tsd-panel-group tsd-member-group">
|
|
75
|
+
<h2>Constructors</h2>
|
|
76
|
+
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a>
|
|
77
|
+
<h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
|
78
|
+
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
|
79
|
+
<li class="tsd-signature tsd-anchor-link" id="constructor.new_DefaultSudoUserClient">new <wbr/>Default<wbr/>Sudo<wbr/>User<wbr/>Client<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">SudoUserOptions</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="DefaultSudoUserClient.html" class="tsd-signature-type" data-tsd-kind="Class">DefaultSudoUserClient</a><a href="#constructor.new_DefaultSudoUserClient" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
80
|
+
<li class="tsd-description">
|
|
81
|
+
<div class="tsd-parameters">
|
|
82
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
83
|
+
<ul class="tsd-parameter-list">
|
|
84
|
+
<li>
|
|
85
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <span class="tsd-signature-type">SudoUserOptions</span></h5></li></ul></div>
|
|
86
|
+
<h4 class="tsd-returns-title">Returns <a href="DefaultSudoUserClient.html" class="tsd-signature-type" data-tsd-kind="Class">DefaultSudoUserClient</a></h4><aside class="tsd-sources">
|
|
87
|
+
<ul>
|
|
88
|
+
<li>Defined in src/user/user-client.ts:55</li></ul></aside></li></ul></section></section>
|
|
89
|
+
<section class="tsd-panel-group tsd-member-group">
|
|
90
|
+
<h2>Accessors</h2>
|
|
91
|
+
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="sudoKeyManager" class="tsd-anchor"></a>
|
|
92
|
+
<h3 class="tsd-anchor-link"><span>sudo<wbr/>Key<wbr/>Manager</span><a href="#sudoKeyManager" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
93
|
+
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
94
|
+
<li class="tsd-signature" id="sudoKeyManager.sudoKeyManager-1"><span class="tsd-signature-symbol">get</span> sudoKeyManager<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SudoKeyManager</span></li>
|
|
95
|
+
<li class="tsd-description">
|
|
96
|
+
<div class="tsd-comment tsd-typography"><p>Getter to retrieve the SudoKeyManager</p>
|
|
97
|
+
</div>
|
|
98
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SudoKeyManager</span></h4><aside class="tsd-sources">
|
|
99
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#sudoKeyManager">sudoKeyManager</a></p>
|
|
100
|
+
<ul>
|
|
101
|
+
<li>Defined in src/user/user-client.ts:107</li></ul></aside></li></ul></section></section>
|
|
102
|
+
<section class="tsd-panel-group tsd-member-group">
|
|
103
|
+
<h2>Methods</h2>
|
|
104
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="clearAuthenticationTokens" class="tsd-anchor"></a>
|
|
105
|
+
<h3 class="tsd-anchor-link"><span>clear<wbr/>Authentication<wbr/>Tokens</span><a href="#clearAuthenticationTokens" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
106
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
107
|
+
<li class="tsd-signature tsd-anchor-link" id="clearAuthenticationTokens.clearAuthenticationTokens-1">clear<wbr/>Authentication<wbr/>Tokens<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#clearAuthenticationTokens.clearAuthenticationTokens-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
108
|
+
<li class="tsd-description">
|
|
109
|
+
<div class="tsd-comment tsd-typography"><p>Clears cached authentication tokens.</p>
|
|
110
|
+
</div>
|
|
111
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
112
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#clearAuthenticationTokens">clearAuthenticationTokens</a></p>
|
|
113
|
+
<ul>
|
|
114
|
+
<li>Defined in src/user/user-client.ts:417</li></ul></aside></li></ul></section>
|
|
115
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="deregister" class="tsd-anchor"></a>
|
|
116
|
+
<h3 class="tsd-anchor-link"><span>deregister</span><a href="#deregister" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
117
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
118
|
+
<li class="tsd-signature tsd-anchor-link" id="deregister.deregister-1">deregister<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#deregister.deregister-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
119
|
+
<li class="tsd-description">
|
|
120
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
121
|
+
<ul>
|
|
122
|
+
<li>Defined in src/user/user-client.ts:411</li></ul></aside></li></ul></section>
|
|
123
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getAccessToken" class="tsd-anchor"></a>
|
|
124
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Access<wbr/>Token</span><a href="#getAccessToken" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
125
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
126
|
+
<li class="tsd-signature tsd-anchor-link" id="getAccessToken.getAccessToken-1">get<wbr/>Access<wbr/>Token<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#getAccessToken.getAccessToken-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
127
|
+
<li class="tsd-description">
|
|
128
|
+
<div class="tsd-comment tsd-typography"><p>Returns the access token cached from the last sign-in.</p>
|
|
129
|
+
|
|
130
|
+
<h3>Returns</h3><p>access token.</p>
|
|
131
|
+
</div>
|
|
132
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
133
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#getAccessToken">getAccessToken</a></p>
|
|
134
|
+
<ul>
|
|
135
|
+
<li>Defined in src/user/user-client.ts:145</li></ul></aside></li></ul></section>
|
|
136
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getIdToken" class="tsd-anchor"></a>
|
|
137
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Id<wbr/>Token</span><a href="#getIdToken" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
138
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
139
|
+
<li class="tsd-signature tsd-anchor-link" id="getIdToken.getIdToken-1">get<wbr/>Id<wbr/>Token<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#getIdToken.getIdToken-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
140
|
+
<li class="tsd-description">
|
|
141
|
+
<div class="tsd-comment tsd-typography"><p>Returns the ID token cached from the last sign-in.</p>
|
|
142
|
+
|
|
143
|
+
<h3>Returns</h3><p>ID token.</p>
|
|
144
|
+
</div>
|
|
145
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
146
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#getIdToken">getIdToken</a></p>
|
|
147
|
+
<ul>
|
|
148
|
+
<li>Defined in src/user/user-client.ts:141</li></ul></aside></li></ul></section>
|
|
149
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getLatestAuthToken" class="tsd-anchor"></a>
|
|
150
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Latest<wbr/>Auth<wbr/>Token</span><a href="#getLatestAuthToken" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
151
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
152
|
+
<li class="tsd-signature tsd-anchor-link" id="getLatestAuthToken.getLatestAuthToken-1">get<wbr/>Latest<wbr/>Auth<wbr/>Token<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#getLatestAuthToken.getLatestAuthToken-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
153
|
+
<li class="tsd-description">
|
|
154
|
+
<div class="tsd-comment tsd-typography"><p>Retrieves the latest ID token. This is to be used by the AWS AppSync client.</p>
|
|
155
|
+
|
|
156
|
+
<h3>Returns</h3><p>the latest ID token</p>
|
|
157
|
+
</div>
|
|
158
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
159
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#getLatestAuthToken">getLatestAuthToken</a></p>
|
|
160
|
+
<ul>
|
|
161
|
+
<li>Defined in src/user/user-client.ts:236</li></ul></aside></li></ul></section>
|
|
162
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getRefreshToken" class="tsd-anchor"></a>
|
|
163
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Refresh<wbr/>Token</span><a href="#getRefreshToken" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
164
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
165
|
+
<li class="tsd-signature tsd-anchor-link" id="getRefreshToken.getRefreshToken-1">get<wbr/>Refresh<wbr/>Token<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#getRefreshToken.getRefreshToken-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
166
|
+
<li class="tsd-description">
|
|
167
|
+
<div class="tsd-comment tsd-typography"><p>Returns the refresh token cached from the last sign-in.</p>
|
|
168
|
+
|
|
169
|
+
<h3>Returns</h3><p>refresh token.</p>
|
|
170
|
+
</div>
|
|
171
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
172
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#getRefreshToken">getRefreshToken</a></p>
|
|
173
|
+
<ul>
|
|
174
|
+
<li>Defined in src/user/user-client.ts:149</li></ul></aside></li></ul></section>
|
|
175
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getRefreshTokenExpiry" class="tsd-anchor"></a>
|
|
176
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Refresh<wbr/>Token<wbr/>Expiry</span><a href="#getRefreshTokenExpiry" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
177
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
178
|
+
<li class="tsd-signature tsd-anchor-link" id="getRefreshTokenExpiry.getRefreshTokenExpiry-1">get<wbr/>Refresh<wbr/>Token<wbr/>Expiry<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">></span><a href="#getRefreshTokenExpiry.getRefreshTokenExpiry-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
179
|
+
<li class="tsd-description">
|
|
180
|
+
<div class="tsd-comment tsd-typography"><p>Returns the refresh token expiry cached from the last sign-in.</p>
|
|
181
|
+
|
|
182
|
+
<h3>Returns</h3><p>refresh token expiry.</p>
|
|
183
|
+
</div>
|
|
184
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
185
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#getRefreshTokenExpiry">getRefreshTokenExpiry</a></p>
|
|
186
|
+
<ul>
|
|
187
|
+
<li>Defined in src/user/user-client.ts:158</li></ul></aside></li></ul></section>
|
|
188
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getSubject" class="tsd-anchor"></a>
|
|
189
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Subject</span><a href="#getSubject" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
190
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
191
|
+
<li class="tsd-signature tsd-anchor-link" id="getSubject.getSubject-1">get<wbr/>Subject<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#getSubject.getSubject-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
192
|
+
<li class="tsd-description">
|
|
193
|
+
<div class="tsd-comment tsd-typography"><p>Returns the subject of the user associated with this client.
|
|
17
194
|
Note: This is an internal method used by other Sudo platform SDKs.</p>
|
|
18
|
-
|
|
19
|
-
<p>
|
|
20
|
-
</div
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
<
|
|
195
|
+
|
|
196
|
+
<h3>Returns</h3><p>user subject.</p>
|
|
197
|
+
</div>
|
|
198
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
199
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#getSubject">getSubject</a></p>
|
|
200
|
+
<ul>
|
|
201
|
+
<li>Defined in src/user/user-client.ts:188</li></ul></aside></li></ul></section>
|
|
202
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getTokenExpiry" class="tsd-anchor"></a>
|
|
203
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>Token<wbr/>Expiry</span><a href="#getTokenExpiry" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
204
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
205
|
+
<li class="tsd-signature tsd-anchor-link" id="getTokenExpiry.getTokenExpiry-1">get<wbr/>Token<wbr/>Expiry<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">></span><a href="#getTokenExpiry.getTokenExpiry-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
206
|
+
<li class="tsd-description">
|
|
207
|
+
<div class="tsd-comment tsd-typography"><p>Returns the ID and access token expiry cached from the last sign-in.</p>
|
|
208
|
+
|
|
209
|
+
<h3>Returns</h3><p>token expiry.</p>
|
|
210
|
+
</div>
|
|
211
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
212
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#getTokenExpiry">getTokenExpiry</a></p>
|
|
213
|
+
<ul>
|
|
214
|
+
<li>Defined in src/user/user-client.ts:153</li></ul></aside></li></ul></section>
|
|
215
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getUserClaim" class="tsd-anchor"></a>
|
|
216
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>User<wbr/>Claim</span><a href="#getUserClaim" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
217
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
218
|
+
<li class="tsd-signature tsd-anchor-link" id="getUserClaim.getUserClaim-1">get<wbr/>User<wbr/>Claim<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span><a href="#getUserClaim.getUserClaim-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
219
|
+
<li class="tsd-description">
|
|
220
|
+
<div class="tsd-comment tsd-typography"><p>Returns the specified claim associated with the user's identity.</p>
|
|
221
|
+
</div>
|
|
222
|
+
<div class="tsd-parameters">
|
|
223
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
224
|
+
<ul class="tsd-parameter-list">
|
|
225
|
+
<li>
|
|
226
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
227
|
+
<div class="tsd-comment tsd-typography"><p>claim name.</p>
|
|
228
|
+
</div></li></ul></div>
|
|
229
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
230
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#getUserClaim">getUserClaim</a></p>
|
|
231
|
+
<ul>
|
|
232
|
+
<li>Defined in src/user/user-client.ts:182</li></ul></aside></li></ul></section>
|
|
233
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getUserName" class="tsd-anchor"></a>
|
|
234
|
+
<h3 class="tsd-anchor-link"><span>get<wbr/>User<wbr/>Name</span><a href="#getUserName" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
235
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
236
|
+
<li class="tsd-signature tsd-anchor-link" id="getUserName.getUserName-1">get<wbr/>User<wbr/>Name<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#getUserName.getUserName-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
237
|
+
<li class="tsd-description">
|
|
238
|
+
<div class="tsd-comment tsd-typography"><p>Returns the user name associated with this client. The username maybe needed to contact
|
|
24
239
|
the support team when diagnosing an issue related to a specific user.</p>
|
|
25
|
-
|
|
26
|
-
<p>
|
|
27
|
-
</div
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
<
|
|
240
|
+
|
|
241
|
+
<h3>Returns</h3><p>user name.</p>
|
|
242
|
+
</div>
|
|
243
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
244
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#getUserName">getUserName</a></p>
|
|
245
|
+
<ul>
|
|
246
|
+
<li>Defined in src/user/user-client.ts:169</li></ul></aside></li></ul></section>
|
|
247
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="globalSignOut" class="tsd-anchor"></a>
|
|
248
|
+
<h3 class="tsd-anchor-link"><span>global<wbr/>Sign<wbr/>Out</span><a href="#globalSignOut" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
249
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
250
|
+
<li class="tsd-signature tsd-anchor-link" id="globalSignOut.globalSignOut-1">global<wbr/>Sign<wbr/>Out<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#globalSignOut.globalSignOut-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
251
|
+
<li class="tsd-description">
|
|
252
|
+
<div class="tsd-comment tsd-typography"><p>Signs out the user from all devices.</p>
|
|
253
|
+
</div>
|
|
254
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
255
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#globalSignOut">globalSignOut</a></p>
|
|
256
|
+
<ul>
|
|
257
|
+
<li>Defined in src/user/user-client.ts:288</li></ul></aside></li></ul></section>
|
|
258
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isRegistered" class="tsd-anchor"></a>
|
|
259
|
+
<h3 class="tsd-anchor-link"><span>is<wbr/>Registered</span><a href="#isRegistered" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
260
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
261
|
+
<li class="tsd-signature tsd-anchor-link" id="isRegistered.isRegistered-1">is<wbr/>Registered<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><a href="#isRegistered.isRegistered-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
262
|
+
<li class="tsd-description">
|
|
263
|
+
<div class="tsd-comment tsd-typography"><p>Indicates whether or not this client is registered with Sudo Platform backend.</p>
|
|
264
|
+
|
|
265
|
+
<h3>Returns</h3><p><em>true</em> if the client is registered.</p>
|
|
266
|
+
</div>
|
|
267
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
268
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#isRegistered">isRegistered</a></p>
|
|
269
|
+
<ul>
|
|
270
|
+
<li>Defined in src/user/user-client.ts:383</li></ul></aside></li></ul></section>
|
|
271
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isSignedIn" class="tsd-anchor"></a>
|
|
272
|
+
<h3 class="tsd-anchor-link"><span>is<wbr/>Signed<wbr/>In</span><a href="#isSignedIn" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
273
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
274
|
+
<li class="tsd-signature tsd-anchor-link" id="isSignedIn.isSignedIn-1">is<wbr/>Signed<wbr/>In<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><a href="#isSignedIn.isSignedIn-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
275
|
+
<li class="tsd-description">
|
|
276
|
+
<div class="tsd-comment tsd-typography"><p>Indicates whether or not this client is signed in with Sudo Platform backend. The client is
|
|
31
277
|
considered signed in if it cached valid ID, access and refresh tokens.</p>
|
|
32
|
-
|
|
33
|
-
<p>
|
|
34
|
-
</div
|
|
35
|
-
<
|
|
278
|
+
|
|
279
|
+
<h3>Returns</h3><p><em>true</em> if the client is signed in.</p>
|
|
280
|
+
</div>
|
|
281
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
282
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#isSignedIn">isSignedIn</a></p>
|
|
283
|
+
<ul>
|
|
284
|
+
<li>Defined in src/user/user-client.ts:192</li></ul></aside></li></ul></section>
|
|
285
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="presentFederatedSignInUI" class="tsd-anchor"></a>
|
|
286
|
+
<h3 class="tsd-anchor-link"><span>present<wbr/>Federated<wbr/>Sign<wbr/>InUI</span><a href="#presentFederatedSignInUI" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
287
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
288
|
+
<li class="tsd-signature tsd-anchor-link" id="presentFederatedSignInUI.presentFederatedSignInUI-1">present<wbr/>Federated<wbr/>Sign<wbr/>InUI<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#presentFederatedSignInUI.presentFederatedSignInUI-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
289
|
+
<li class="tsd-description">
|
|
290
|
+
<div class="tsd-comment tsd-typography"><p>Presents the sign in UI for federated sign in using an external identity provider.</p>
|
|
291
|
+
</div>
|
|
292
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
293
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#presentFederatedSignInUI">presentFederatedSignInUI</a></p>
|
|
294
|
+
<ul>
|
|
295
|
+
<li>Defined in src/user/user-client.ts:111</li></ul></aside></li></ul></section>
|
|
296
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="presentSignOutUI" class="tsd-anchor"></a>
|
|
297
|
+
<h3 class="tsd-anchor-link"><span>present<wbr/>Sign<wbr/>OutUI</span><a href="#presentSignOutUI" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
298
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
299
|
+
<li class="tsd-signature tsd-anchor-link" id="presentSignOutUI.presentSignOutUI-1">present<wbr/>Sign<wbr/>OutUI<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#presentSignOutUI.presentSignOutUI-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
300
|
+
<li class="tsd-description">
|
|
301
|
+
<div class="tsd-comment tsd-typography"><p>Presents the Cognito hosted UI signout endpoint.
|
|
36
302
|
When the endpoint is invoked, the hosted web app's cookies
|
|
37
303
|
will be invalidated, but the user is not logged out of Cognito.</p>
|
|
38
|
-
</div
|
|
39
|
-
<
|
|
304
|
+
</div>
|
|
305
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
306
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#presentSignOutUI">presentSignOutUI</a></p>
|
|
307
|
+
<ul>
|
|
308
|
+
<li>Defined in src/user/user-client.ts:430</li></ul></aside></li></ul></section>
|
|
309
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="processFederatedSignInTokens" class="tsd-anchor"></a>
|
|
310
|
+
<h3 class="tsd-anchor-link"><span>process<wbr/>Federated<wbr/>Sign<wbr/>In<wbr/>Tokens</span><a href="#processFederatedSignInTokens" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
311
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
312
|
+
<li class="tsd-signature tsd-anchor-link" id="processFederatedSignInTokens.processFederatedSignInTokens-1">process<wbr/>Federated<wbr/>Sign<wbr/>In<wbr/>Tokens<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/AuthenticationTokens.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationTokens</a><span class="tsd-signature-symbol">></span><a href="#processFederatedSignInTokens.processFederatedSignInTokens-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
313
|
+
<li class="tsd-description">
|
|
314
|
+
<div class="tsd-comment tsd-typography"><p>Processes tokens from federated sign in returned to the specified URL.
|
|
40
315
|
The tokens are passed to the web app via a redirect URL.</p>
|
|
41
|
-
|
|
42
|
-
<p>
|
|
43
|
-
</div
|
|
44
|
-
<
|
|
316
|
+
|
|
317
|
+
<h3>Returns</h3><p>Successful authentication result AuthenticationTokens.</p>
|
|
318
|
+
</div>
|
|
319
|
+
<div class="tsd-parameters">
|
|
320
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
321
|
+
<ul class="tsd-parameter-list">
|
|
322
|
+
<li>
|
|
323
|
+
<h5>url: <span class="tsd-signature-type">string</span></h5>
|
|
324
|
+
<div class="tsd-comment tsd-typography"><p>callback URL containing the tokens.</p>
|
|
325
|
+
</div></li></ul></div>
|
|
326
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/AuthenticationTokens.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationTokens</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
327
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#processFederatedSignInTokens">processFederatedSignInTokens</a></p>
|
|
328
|
+
<ul>
|
|
329
|
+
<li>Defined in src/user/user-client.ts:121</li></ul></aside></li></ul></section>
|
|
330
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="refreshTokens" class="tsd-anchor"></a>
|
|
331
|
+
<h3 class="tsd-anchor-link"><span>refresh<wbr/>Tokens</span><a href="#refreshTokens" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
332
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
333
|
+
<li class="tsd-signature tsd-anchor-link" id="refreshTokens.refreshTokens-1">refresh<wbr/>Tokens<span class="tsd-signature-symbol">(</span>refreshToken<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/AuthenticationTokens.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationTokens</a><span class="tsd-signature-symbol">></span><a href="#refreshTokens.refreshTokens-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
334
|
+
<li class="tsd-description">
|
|
335
|
+
<div class="tsd-comment tsd-typography"><p>Refresh the access and ID tokens using the refresh token.</p>
|
|
336
|
+
|
|
337
|
+
<h3>Returns</h3><p>Successful authentication result AuthenticationTokens containing refreshed tokens</p>
|
|
338
|
+
</div>
|
|
339
|
+
<div class="tsd-parameters">
|
|
340
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
341
|
+
<ul class="tsd-parameter-list">
|
|
342
|
+
<li>
|
|
343
|
+
<h5>refreshToken: <span class="tsd-signature-type">string</span></h5>
|
|
344
|
+
<div class="tsd-comment tsd-typography"><p>refresh token used to refresh the access and ID tokens.</p>
|
|
345
|
+
</div></li></ul></div>
|
|
346
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/AuthenticationTokens.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationTokens</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
347
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#refreshTokens">refreshTokens</a></p>
|
|
348
|
+
<ul>
|
|
349
|
+
<li>Defined in src/user/user-client.ts:216</li></ul></aside></li></ul></section>
|
|
350
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="registerWithAuthenticationProvider" class="tsd-anchor"></a>
|
|
351
|
+
<h3 class="tsd-anchor-link"><span>register<wbr/>With<wbr/>Authentication<wbr/>Provider</span><a href="#registerWithAuthenticationProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
352
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
353
|
+
<li class="tsd-signature tsd-anchor-link" id="registerWithAuthenticationProvider.registerWithAuthenticationProvider-1">register<wbr/>With<wbr/>Authentication<wbr/>Provider<span class="tsd-signature-symbol">(</span>authenticationProvider<span class="tsd-signature-symbol">: </span><a href="../interfaces/AuthenticationProvider.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationProvider</a>, registrationId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#registerWithAuthenticationProvider.registerWithAuthenticationProvider-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
354
|
+
<li class="tsd-description">
|
|
355
|
+
<div class="tsd-comment tsd-typography"><p>Registers this client against the backend with an external authentication provider. The caller must
|
|
45
356
|
implement AuthenticationProvider protocol to return the appropriate authentication token required
|
|
46
357
|
to authorize the registration request.</p>
|
|
47
|
-
|
|
48
|
-
<p>
|
|
49
|
-
</div
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
<
|
|
358
|
+
|
|
359
|
+
<h3>Returns</h3><p>user ID of the newly created user</p>
|
|
360
|
+
</div>
|
|
361
|
+
<div class="tsd-parameters">
|
|
362
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
363
|
+
<ul class="tsd-parameter-list">
|
|
364
|
+
<li>
|
|
365
|
+
<h5>authenticationProvider: <a href="../interfaces/AuthenticationProvider.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationProvider</a></h5>
|
|
366
|
+
<div class="tsd-comment tsd-typography"><p>authentication provider that provides the authentication token.</p>
|
|
367
|
+
</div></li>
|
|
368
|
+
<li>
|
|
369
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> registrationId: <span class="tsd-signature-type">string</span></h5>
|
|
370
|
+
<div class="tsd-comment tsd-typography"><p>registration ID to uniquely identify this registration request.</p>
|
|
371
|
+
</div></li></ul></div>
|
|
372
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
373
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#registerWithAuthenticationProvider">registerWithAuthenticationProvider</a></p>
|
|
374
|
+
<ul>
|
|
375
|
+
<li>Defined in src/user/user-client.ts:296</li></ul></aside></li></ul></section>
|
|
376
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="reset" class="tsd-anchor"></a>
|
|
377
|
+
<h3 class="tsd-anchor-link"><span>reset</span><a href="#reset" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
378
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
379
|
+
<li class="tsd-signature tsd-anchor-link" id="reset.reset-1">reset<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#reset.reset-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
380
|
+
<li class="tsd-description">
|
|
381
|
+
<div class="tsd-comment tsd-typography"><p>Resets internal state and clears any cached data.</p>
|
|
382
|
+
</div>
|
|
383
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
384
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#reset">reset</a></p>
|
|
385
|
+
<ul>
|
|
386
|
+
<li>Defined in src/user/user-client.ts:434</li></ul></aside></li></ul></section>
|
|
387
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setAuthUI" class="tsd-anchor"></a>
|
|
388
|
+
<h3 class="tsd-anchor-link"><span>set<wbr/>AuthUI</span><a href="#setAuthUI" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
389
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
390
|
+
<li class="tsd-signature tsd-anchor-link" id="setAuthUI.setAuthUI-1">set<wbr/>AuthUI<span class="tsd-signature-symbol">(</span>authUI<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AuthUI</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#setAuthUI.setAuthUI-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
391
|
+
<li class="tsd-description">
|
|
392
|
+
<div class="tsd-comment tsd-typography"><p>Provide a custom auth UI. This is mainly used for unit testing (optional).</p>
|
|
393
|
+
</div>
|
|
394
|
+
<div class="tsd-parameters">
|
|
395
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
396
|
+
<ul class="tsd-parameter-list">
|
|
397
|
+
<li>
|
|
398
|
+
<h5>authUI: <span class="tsd-signature-type">AuthUI</span></h5></li></ul></div>
|
|
399
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
400
|
+
<ul>
|
|
401
|
+
<li>Defined in src/user/user-client.ts:528</li></ul></aside></li></ul></section>
|
|
402
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setAuthenticationStore" class="tsd-anchor"></a>
|
|
403
|
+
<h3 class="tsd-anchor-link"><span>set<wbr/>Authentication<wbr/>Store</span><a href="#setAuthenticationStore" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
404
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
405
|
+
<li class="tsd-signature tsd-anchor-link" id="setAuthenticationStore.setAuthenticationStore-1">set<wbr/>Authentication<wbr/>Store<span class="tsd-signature-symbol">(</span>authenticationStore<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AuthenticationStore</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#setAuthenticationStore.setAuthenticationStore-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
406
|
+
<li class="tsd-description">
|
|
407
|
+
<div class="tsd-comment tsd-typography"><p>Provide a custom authentication store.
|
|
53
408
|
This is mainly used for unit testing (optional).</p>
|
|
54
|
-
</div
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
<
|
|
409
|
+
</div>
|
|
410
|
+
<div class="tsd-parameters">
|
|
411
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
412
|
+
<ul class="tsd-parameter-list">
|
|
413
|
+
<li>
|
|
414
|
+
<h5>authenticationStore: <span class="tsd-signature-type">AuthenticationStore</span></h5></li></ul></div>
|
|
415
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
416
|
+
<ul>
|
|
417
|
+
<li>Defined in src/user/user-client.ts:551</li></ul></aside></li></ul></section>
|
|
418
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setIdentityProvider" class="tsd-anchor"></a>
|
|
419
|
+
<h3 class="tsd-anchor-link"><span>set<wbr/>Identity<wbr/>Provider</span><a href="#setIdentityProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
420
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
421
|
+
<li class="tsd-signature tsd-anchor-link" id="setIdentityProvider.setIdentityProvider-1">set<wbr/>Identity<wbr/>Provider<span class="tsd-signature-symbol">(</span>identityProvider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IdentityProvider</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#setIdentityProvider.setIdentityProvider-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
422
|
+
<li class="tsd-description">
|
|
423
|
+
<div class="tsd-comment tsd-typography"><p>Provide a custom identity provider. This is mainly used for unit testing (optional).</p>
|
|
424
|
+
</div>
|
|
425
|
+
<div class="tsd-parameters">
|
|
426
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
427
|
+
<ul class="tsd-parameter-list">
|
|
428
|
+
<li>
|
|
429
|
+
<h5>identityProvider: <span class="tsd-signature-type">IdentityProvider</span></h5></li></ul></div>
|
|
430
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
431
|
+
<ul>
|
|
432
|
+
<li>Defined in src/user/user-client.ts:535</li></ul></aside></li></ul></section>
|
|
433
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setLaunchUriFn" class="tsd-anchor"></a>
|
|
434
|
+
<h3 class="tsd-anchor-link"><span>set<wbr/>Launch<wbr/>Uri<wbr/>Fn</span><a href="#setLaunchUriFn" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
435
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
436
|
+
<li class="tsd-signature tsd-anchor-link" id="setLaunchUriFn.setLaunchUriFn-1">set<wbr/>Launch<wbr/>Uri<wbr/>Fn<span class="tsd-signature-symbol">(</span>launchUriFn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#setLaunchUriFn.setLaunchUriFn-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
437
|
+
<li class="tsd-description">
|
|
438
|
+
<div class="tsd-comment tsd-typography"><p>Provide a custom function to open the sign in url.
|
|
58
439
|
This is mainly used for unit testing (optional).</p>
|
|
59
|
-
</div
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
<
|
|
440
|
+
</div>
|
|
441
|
+
<div class="tsd-parameters">
|
|
442
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
443
|
+
<ul class="tsd-parameter-list">
|
|
444
|
+
<li>
|
|
445
|
+
<h5>launchUriFn: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></h5>
|
|
446
|
+
<ul class="tsd-parameters">
|
|
447
|
+
<li class="tsd-parameter-signature">
|
|
448
|
+
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
449
|
+
<li class="tsd-signature"><span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
450
|
+
<li class="tsd-description">
|
|
451
|
+
<div class="tsd-parameters">
|
|
452
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
453
|
+
<ul class="tsd-parameter-list">
|
|
454
|
+
<li>
|
|
455
|
+
<h5>url: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
456
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div>
|
|
457
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
458
|
+
<ul>
|
|
459
|
+
<li>Defined in src/user/user-client.ts:543</li></ul></aside></li></ul></section>
|
|
460
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setUserName" class="tsd-anchor"></a>
|
|
461
|
+
<h3 class="tsd-anchor-link"><span>set<wbr/>User<wbr/>Name</span><a href="#setUserName" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
462
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
463
|
+
<li class="tsd-signature tsd-anchor-link" id="setUserName.setUserName-1">set<wbr/>User<wbr/>Name<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#setUserName.setUserName-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
464
|
+
<li class="tsd-description">
|
|
465
|
+
<div class="tsd-comment tsd-typography"><p>Sets the user name associated with this client.</p>
|
|
466
|
+
</div>
|
|
467
|
+
<div class="tsd-parameters">
|
|
468
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
469
|
+
<ul class="tsd-parameter-list">
|
|
470
|
+
<li>
|
|
471
|
+
<h5>name: <span class="tsd-signature-type">string</span></h5>
|
|
472
|
+
<div class="tsd-comment tsd-typography"><p>user name.</p>
|
|
473
|
+
</div></li></ul></div>
|
|
474
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
475
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#setUserName">setUserName</a></p>
|
|
476
|
+
<ul>
|
|
477
|
+
<li>Defined in src/user/user-client.ts:177</li></ul></aside></li></ul></section>
|
|
478
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="signInWithAuthenticationProvider" class="tsd-anchor"></a>
|
|
479
|
+
<h3 class="tsd-anchor-link"><span>sign<wbr/>In<wbr/>With<wbr/>Authentication<wbr/>Provider</span><a href="#signInWithAuthenticationProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
480
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
481
|
+
<li class="tsd-signature tsd-anchor-link" id="signInWithAuthenticationProvider.signInWithAuthenticationProvider-1">sign<wbr/>In<wbr/>With<wbr/>Authentication<wbr/>Provider<span class="tsd-signature-symbol">(</span>authenticationProvider<span class="tsd-signature-symbol">: </span><a href="../interfaces/AuthenticationProvider.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationProvider</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/AuthenticationTokens.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationTokens</a><span class="tsd-signature-symbol">></span><a href="#signInWithAuthenticationProvider.signInWithAuthenticationProvider-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
482
|
+
<li class="tsd-description">
|
|
483
|
+
<div class="tsd-comment tsd-typography"><p>Sign into the backend using an external authentication provider. Caller must implement
|
|
63
484
|
<em>AuthenticationProvider</em> interface to return the appropriate authentication token associated with
|
|
64
485
|
the external identity registered with <em>registerWithAuthenticationProvider</em>.</p>
|
|
65
|
-
|
|
66
|
-
<p>
|
|
486
|
+
|
|
487
|
+
<h3>Returns</h3><p>authentication tokens associated with the successful sign in.</p>
|
|
488
|
+
</div>
|
|
489
|
+
<div class="tsd-parameters">
|
|
490
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
491
|
+
<ul class="tsd-parameter-list">
|
|
492
|
+
<li>
|
|
493
|
+
<h5>authenticationProvider: <a href="../interfaces/AuthenticationProvider.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationProvider</a></h5>
|
|
494
|
+
<div class="tsd-comment tsd-typography"><p>authentication provider that provides the authentication token.</p>
|
|
495
|
+
</div></li></ul></div>
|
|
496
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/AuthenticationTokens.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationTokens</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
497
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#signInWithAuthenticationProvider">signInWithAuthenticationProvider</a></p>
|
|
498
|
+
<ul>
|
|
499
|
+
<li>Defined in src/user/user-client.ts:357</li></ul></aside></li></ul></section>
|
|
500
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="signInWithKey" class="tsd-anchor"></a>
|
|
501
|
+
<h3 class="tsd-anchor-link"><span>sign<wbr/>In<wbr/>With<wbr/>Key</span><a href="#signInWithKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
502
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
503
|
+
<li class="tsd-signature tsd-anchor-link" id="signInWithKey.signInWithKey-1">sign<wbr/>In<wbr/>With<wbr/>Key<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/AuthenticationTokens.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationTokens</a><span class="tsd-signature-symbol">></span><a href="#signInWithKey.signInWithKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
504
|
+
<li class="tsd-description">
|
|
505
|
+
<div class="tsd-comment tsd-typography"><p>Sign into the backend using a private key. The client must have created a private/public key pair via
|
|
67
506
|
the <em>registerWithAuthenticationProvider</em> method.</p>
|
|
68
|
-
|
|
507
|
+
|
|
508
|
+
<h3>Returns</h3><p>authentication tokens associated with the successful sign in.</p>
|
|
509
|
+
</div>
|
|
510
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/AuthenticationTokens.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthenticationTokens</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
511
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#signInWithKey">signInWithKey</a></p>
|
|
512
|
+
<ul>
|
|
513
|
+
<li>Defined in src/user/user-client.ts:392</li></ul></aside></li></ul></section>
|
|
514
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="signOut" class="tsd-anchor"></a>
|
|
515
|
+
<h3 class="tsd-anchor-link"><span>sign<wbr/>Out</span><a href="#signOut" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
516
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
517
|
+
<li class="tsd-signature tsd-anchor-link" id="signOut.signOut-1">sign<wbr/>Out<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#signOut.signOut-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
518
|
+
<li class="tsd-description">
|
|
519
|
+
<div class="tsd-comment tsd-typography"><p>Signs out the user from this device.</p>
|
|
520
|
+
</div>
|
|
521
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
522
|
+
<p>Implementation of <a href="../interfaces/SudoUserClient.html">SudoUserClient</a>.<a href="../interfaces/SudoUserClient.html#signOut">signOut</a></p>
|
|
523
|
+
<ul>
|
|
524
|
+
<li>Defined in src/user/user-client.ts:270</li></ul></aside></li></ul></section></section></div>
|
|
525
|
+
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
526
|
+
<div class="tsd-navigation settings">
|
|
527
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
528
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Settings</h3></summary>
|
|
529
|
+
<div class="tsd-accordion-details">
|
|
530
|
+
<div class="tsd-filter-visibility">
|
|
531
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
532
|
+
<ul id="tsd-filter-options">
|
|
533
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
534
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
|
|
535
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
|
|
536
|
+
<div class="tsd-theme-toggle">
|
|
537
|
+
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
538
|
+
<nav class="tsd-navigation primary">
|
|
539
|
+
<details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
|
|
540
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
541
|
+
<div class="tsd-accordion-details">
|
|
542
|
+
<ul>
|
|
543
|
+
<li><a href="../modules.html">@sudoplatform/sudo-<wbr/>user</a>
|
|
544
|
+
<ul></ul></li></ul></div></details></nav>
|
|
545
|
+
<nav class="tsd-navigation secondary menu-sticky">
|
|
546
|
+
<ul>
|
|
547
|
+
<li class="current tsd-kind-class"><a href="DefaultSudoUserClient.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg><span>Default<wbr/>Sudo<wbr/>User<wbr/>Client</span></a>
|
|
548
|
+
<ul>
|
|
549
|
+
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-512-path"></use><use href="#icon-512-text"></use></svg>constructor</a></li>
|
|
550
|
+
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#sudoKeyManager" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>sudo<wbr/>Key<wbr/>Manager</a></li>
|
|
551
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#clearAuthenticationTokens" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>clear<wbr/>Authentication<wbr/>Tokens</a></li>
|
|
552
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#deregister" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>deregister</a></li>
|
|
553
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getAccessToken" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Access<wbr/>Token</a></li>
|
|
554
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getIdToken" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Id<wbr/>Token</a></li>
|
|
555
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getLatestAuthToken" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Latest<wbr/>Auth<wbr/>Token</a></li>
|
|
556
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getRefreshToken" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Refresh<wbr/>Token</a></li>
|
|
557
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getRefreshTokenExpiry" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Refresh<wbr/>Token<wbr/>Expiry</a></li>
|
|
558
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getSubject" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Subject</a></li>
|
|
559
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getTokenExpiry" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Token<wbr/>Expiry</a></li>
|
|
560
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getUserClaim" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>User<wbr/>Claim</a></li>
|
|
561
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#getUserName" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>User<wbr/>Name</a></li>
|
|
562
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#globalSignOut" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>global<wbr/>Sign<wbr/>Out</a></li>
|
|
563
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#isRegistered" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>is<wbr/>Registered</a></li>
|
|
564
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#isSignedIn" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>is<wbr/>Signed<wbr/>In</a></li>
|
|
565
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#presentFederatedSignInUI" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>present<wbr/>Federated<wbr/>Sign<wbr/>InUI</a></li>
|
|
566
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#presentSignOutUI" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>present<wbr/>Sign<wbr/>OutUI</a></li>
|
|
567
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#processFederatedSignInTokens" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>process<wbr/>Federated<wbr/>Sign<wbr/>In<wbr/>Tokens</a></li>
|
|
568
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#refreshTokens" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>refresh<wbr/>Tokens</a></li>
|
|
569
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#registerWithAuthenticationProvider" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>register<wbr/>With<wbr/>Authentication<wbr/>Provider</a></li>
|
|
570
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#reset" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>reset</a></li>
|
|
571
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#setAuthUI" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>set<wbr/>AuthUI</a></li>
|
|
572
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#setAuthenticationStore" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>set<wbr/>Authentication<wbr/>Store</a></li>
|
|
573
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#setIdentityProvider" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>set<wbr/>Identity<wbr/>Provider</a></li>
|
|
574
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#setLaunchUriFn" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>set<wbr/>Launch<wbr/>Uri<wbr/>Fn</a></li>
|
|
575
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#setUserName" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>set<wbr/>User<wbr/>Name</a></li>
|
|
576
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#signInWithAuthenticationProvider" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>sign<wbr/>In<wbr/>With<wbr/>Authentication<wbr/>Provider</a></li>
|
|
577
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#signInWithKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>sign<wbr/>In<wbr/>With<wbr/>Key</a></li>
|
|
578
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultSudoUserClient.html#signOut" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>sign<wbr/>Out</a></li></ul></li></ul></nav></div></div>
|
|
579
|
+
<div class="container tsd-generator">
|
|
580
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
581
|
+
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|