Skip to content

Commit 19ddff4

Browse files
Release v2.0.1 (#1059)
1 parent 275d845 commit 19ddff4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+422
-215
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## [v2.0.1](https://github.com/auth0/auth0-spa-js/tree/v2.0.1) (2022-12-08)
4+
[Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v2.0.0...v2.0.1)
5+
6+
**Changed**
7+
- Add openUrl and deprecate onRedirect [\#1058](https://github.com/auth0/auth0-spa-js/pull/1058) ([frederikprijck](https://github.com/frederikprijck))
8+
9+
**Fixed**
10+
- Export MissingRefreshTokenError [\#1043](https://github.com/auth0/auth0-spa-js/pull/1043) ([frederikprijck](https://github.com/frederikprijck))
11+
312
## [v2.0.0](https://github.com/auth0/auth0-spa-js/tree/v2.0.0) (2022-10-27)
413

514
[Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v1.22.5...v2.0.0)

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/classes/Auth0Client.html

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

docs/classes/AuthenticationError.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h4>Hierarchy</h4>
2626
<ul class="tsd-hierarchy">
2727
<li><span class="target">AuthenticationError</span></li></ul></li></ul></section><aside class="tsd-sources">
2828
<ul>
29-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/errors.ts#L25">errors.ts:25</a></li></ul></aside>
29+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/errors.ts#L25">errors.ts:25</a></li></ul></aside>
3030
<section class="tsd-panel-group tsd-index-group">
3131
<section class="tsd-panel tsd-index-panel">
3232
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -68,31 +68,31 @@ <h5>appState: <span class="tsd-signature-type">any</span><span class="tsd-signat
6868
<h4 class="tsd-returns-title">Returns <a href="AuthenticationError.html" class="tsd-signature-type" data-tsd-kind="Class">AuthenticationError</a></h4><aside class="tsd-sources">
6969
<p>Overrides <a href="GenericError.html">GenericError</a>.<a href="GenericError.html#constructor">constructor</a></p>
7070
<ul>
71-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/errors.ts#L26">errors.ts:26</a></li></ul></aside></li></ul></section></section>
71+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/errors.ts#L26">errors.ts:26</a></li></ul></aside></li></ul></section></section>
7272
<section class="tsd-panel-group tsd-member-group">
7373
<h2>Properties</h2>
7474
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="appState" class="tsd-anchor"></a>
7575
<h3 class="tsd-anchor-link"><span>app<wbr/>State</span><a href="#appState" 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>
7676
<div class="tsd-signature">app<wbr/>State<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources">
7777
<ul>
78-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/errors.ts#L30">errors.ts:30</a></li></ul></aside></section>
78+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/errors.ts#L30">errors.ts:30</a></li></ul></aside></section>
7979
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="error" class="tsd-anchor"></a>
8080
<h3 class="tsd-anchor-link"><span>error</span><a href="#error" 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>
8181
<div class="tsd-signature">error<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
8282
<p>Inherited from <a href="GenericError.html">GenericError</a>.<a href="GenericError.html#error">error</a></p>
8383
<ul>
84-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/errors.ts#L5">errors.ts:5</a></li></ul></aside></section>
84+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/errors.ts#L5">errors.ts:5</a></li></ul></aside></section>
8585
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="error_description" class="tsd-anchor"></a>
8686
<h3 class="tsd-anchor-link"><span>error_<wbr/>description</span><a href="#error_description" 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>
8787
<div class="tsd-signature">error_<wbr/>description<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
8888
<p>Inherited from <a href="GenericError.html">GenericError</a>.<a href="GenericError.html#error_description">error_description</a></p>
8989
<ul>
90-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/errors.ts#L5">errors.ts:5</a></li></ul></aside></section>
90+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/errors.ts#L5">errors.ts:5</a></li></ul></aside></section>
9191
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="state" class="tsd-anchor"></a>
9292
<h3 class="tsd-anchor-link"><span>state</span><a href="#state" 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>
9393
<div class="tsd-signature">state<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
9494
<ul>
95-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/errors.ts#L29">errors.ts:29</a></li></ul></aside></section></section>
95+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/errors.ts#L29">errors.ts:29</a></li></ul></aside></section></section>
9696
<section class="tsd-panel-group tsd-member-group">
9797
<h2>Methods</h2>
9898
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="fromPayload" class="tsd-anchor"></a>
@@ -113,7 +113,7 @@ <h5>error_<wbr/>description<span class="tsd-signature-symbol">: </span><span cla
113113
<h4 class="tsd-returns-title">Returns <a href="GenericError.html" class="tsd-signature-type" data-tsd-kind="Class">GenericError</a></h4><aside class="tsd-sources">
114114
<p>Inherited from <a href="GenericError.html">GenericError</a>.<a href="GenericError.html#fromPayload">fromPayload</a></p>
115115
<ul>
116-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/errors.ts#L10">errors.ts:10</a></li></ul></aside></li></ul></section></section></div>
116+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/errors.ts#L10">errors.ts:10</a></li></ul></aside></li></ul></section></section></div>
117117
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
118118
<div class="tsd-navigation settings">
119119
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">

docs/classes/CacheKey.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h4>Hierarchy</h4>
2020
<ul class="tsd-hierarchy">
2121
<li><span class="target">CacheKey</span></li></ul></section><aside class="tsd-sources">
2222
<ul>
23-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/cache/shared.ts#L12">cache/shared.ts:12</a></li></ul></aside>
23+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/cache/shared.ts#L12">cache/shared.ts:12</a></li></ul></aside>
2424
<section class="tsd-panel-group tsd-index-group">
2525
<section class="tsd-panel tsd-index-panel">
2626
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -62,34 +62,34 @@ <h5>prefix: <span class="tsd-signature-type">string</span><span class="tsd-signa
6262
<h5><code class="tsd-tag ts-flagOptional">Optional</code> suffix: <span class="tsd-signature-type">string</span></h5></li></ul></div>
6363
<h4 class="tsd-returns-title">Returns <a href="CacheKey.html" class="tsd-signature-type" data-tsd-kind="Class">CacheKey</a></h4><aside class="tsd-sources">
6464
<ul>
65-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/cache/shared.ts#L17">cache/shared.ts:17</a></li></ul></aside></li></ul></section></section>
65+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/cache/shared.ts#L17">cache/shared.ts:17</a></li></ul></aside></li></ul></section></section>
6666
<section class="tsd-panel-group tsd-member-group">
6767
<h2>Properties</h2>
6868
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="audience" class="tsd-anchor"></a>
6969
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>audience</span><a href="#audience" 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>
7070
<div class="tsd-signature">audience<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
7171
<ul>
72-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/cache/shared.ts#L15">cache/shared.ts:15</a></li></ul></aside></section>
72+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/cache/shared.ts#L15">cache/shared.ts:15</a></li></ul></aside></section>
7373
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="clientId" class="tsd-anchor"></a>
7474
<h3 class="tsd-anchor-link"><span>client<wbr/>Id</span><a href="#clientId" 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>
7575
<div class="tsd-signature">client<wbr/>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
7676
<ul>
77-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/cache/shared.ts#L13">cache/shared.ts:13</a></li></ul></aside></section>
77+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/cache/shared.ts#L13">cache/shared.ts:13</a></li></ul></aside></section>
7878
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="prefix" class="tsd-anchor"></a>
7979
<h3 class="tsd-anchor-link"><span>prefix</span><a href="#prefix" 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>
8080
<div class="tsd-signature">prefix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = CACHE_KEY_PREFIX</span></div><aside class="tsd-sources">
8181
<ul>
82-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/cache/shared.ts#L19">cache/shared.ts:19</a></li></ul></aside></section>
82+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/cache/shared.ts#L19">cache/shared.ts:19</a></li></ul></aside></section>
8383
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="scope" class="tsd-anchor"></a>
8484
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>scope</span><a href="#scope" 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>
8585
<div class="tsd-signature">scope<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
8686
<ul>
87-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/cache/shared.ts#L14">cache/shared.ts:14</a></li></ul></aside></section>
87+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/cache/shared.ts#L14">cache/shared.ts:14</a></li></ul></aside></section>
8888
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="suffix" class="tsd-anchor"></a>
8989
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>suffix</span><a href="#suffix" 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>
9090
<div class="tsd-signature">suffix<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
9191
<ul>
92-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/cache/shared.ts#L20">cache/shared.ts:20</a></li></ul></aside></section></section>
92+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/cache/shared.ts#L20">cache/shared.ts:20</a></li></ul></aside></section></section>
9393
<section class="tsd-panel-group tsd-member-group">
9494
<h2>Methods</h2>
9595
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toKey" class="tsd-anchor"></a>
@@ -103,7 +103,7 @@ <h3>Returns</h3><p>A string representation of the key</p>
103103
</div>
104104
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
105105
<ul>
106-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/cache/shared.ts#L31">cache/shared.ts:31</a></li></ul></aside></li></ul></section>
106+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/cache/shared.ts#L31">cache/shared.ts:31</a></li></ul></aside></li></ul></section>
107107
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="fromCacheEntry" class="tsd-anchor"></a>
108108
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>from<wbr/>Cache<wbr/>Entry</span><a href="#fromCacheEntry" 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>
109109
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -122,7 +122,7 @@ <h5>entry: <a href="../types/CacheEntry.html" class="tsd-signature-type" data-ts
122122
</div></li></ul></div>
123123
<h4 class="tsd-returns-title">Returns <a href="CacheKey.html" class="tsd-signature-type" data-tsd-kind="Class">CacheKey</a></h4><aside class="tsd-sources">
124124
<ul>
125-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/cache/shared.ts#L53">cache/shared.ts:53</a></li></ul></aside></li></ul></section>
125+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/cache/shared.ts#L53">cache/shared.ts:53</a></li></ul></aside></li></ul></section>
126126
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="fromKey" class="tsd-anchor"></a>
127127
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>from<wbr/>Key</span><a href="#fromKey" 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>
128128
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -141,7 +141,7 @@ <h5>key: <span class="tsd-signature-type">string</span></h5>
141141
</div></li></ul></div>
142142
<h4 class="tsd-returns-title">Returns <a href="CacheKey.html" class="tsd-signature-type" data-tsd-kind="Class">CacheKey</a></h4><aside class="tsd-sources">
143143
<ul>
144-
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/3662d37/src/cache/shared.ts#L42">cache/shared.ts:42</a></li></ul></aside></li></ul></section></section></div>
144+
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/275d845/src/cache/shared.ts#L42">cache/shared.ts:42</a></li></ul></aside></li></ul></section></section></div>
145145
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
146146
<div class="tsd-navigation settings">
147147
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">

0 commit comments

Comments
 (0)