Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.18.0 #797

Merged
merged 1 commit into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Change Log

## [v1.18.0](https://github.com/auth0/auth0-spa-js/tree/v1.18.0) (2021-09-15)

[Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v1.17.1...v1.18.0)

**Added**

- [SDK-2750] Expose mfa_token from the mfa_required error when getting new tokens [\#789](https://github.com/auth0/auth0-spa-js/pull/789) ([frederikprijck](https://github.com/frederikprijck))

**Changed**

- [SDK-2759] Re-scoping cookies and transactions to client ID [\#796](https://github.com/auth0/auth0-spa-js/pull/796) ([stevehobbsdev](https://github.com/stevehobbsdev))
- [SDK-2320] Throw login_required error in SPA SDK if running in a cross-origin is… [\#790](https://github.com/auth0/auth0-spa-js/pull/790) ([frederikprijck](https://github.com/frederikprijck))

**Fixed**

- [SDK-2692] Remember organization ID for silent authentication [\#788](https://github.com/auth0/auth0-spa-js/pull/788) ([stevehobbsdev](https://github.com/stevehobbsdev))

## [v1.17.1](https://github.com/auth0/auth0-spa-js/tree/v1.17.1) (2021-09-03)

[Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v1.17.0...v1.17.1)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Auth0 SDK for Single Page Applications using [Authorization Code Grant Flow with
From the CDN:

```html
<script src="https://cdn.auth0.com/js/auth0-spa-js/1.17/auth0-spa-js.production.js"></script>
<script src="https://cdn.auth0.com/js/auth0-spa-js/1.18/auth0-spa-js.production.js"></script>
```

Using [npm](https://npmjs.org):
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/search.json

Large diffs are not rendered by default.

33 changes: 18 additions & 15 deletions docs/classes/auth0client.html
Original file line number Diff line number Diff line change
Expand Up @@ -2788,6 +2788,9 @@
<li class=" tsd-kind-class">
<a href="localstoragecache.html" class="tsd-kind-icon">Local<wbr>Storage<wbr>Cache</a>
</li>
<li class=" tsd-kind-class">
<a href="mfarequirederror.html" class="tsd-kind-icon">Mfa<wbr>Required<wbr>Error</a>
</li>
<li class=" tsd-kind-class">
<a href="popupcancellederror.html" class="tsd-kind-icon">Popup<wbr>Cancelled<wbr>Error</a>
</li>
Expand Down Expand Up @@ -2948,7 +2951,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L171">src/Auth0Client.ts:171</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L191">src/Auth0Client.ts:191</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -2970,7 +2973,7 @@ <h3>cache<wbr>Location</h3>
<div class="tsd-signature tsd-kind-icon">cache<wbr>Location<span class="tsd-signature-symbol">:</span> <a href="../globals.html#cachelocation" class="tsd-signature-type">CacheLocation</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L170">src/Auth0Client.ts:170</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L190">src/Auth0Client.ts:190</a></li>
</ul>
</aside>
</section>
Expand All @@ -2987,7 +2990,7 @@ <h3>build<wbr>Authorize<wbr>Url</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L322">src/Auth0Client.ts:322</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L370">src/Auth0Client.ts:370</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3021,7 +3024,7 @@ <h3>build<wbr>Logout<wbr>Url</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L831">src/Auth0Client.ts:831</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L892">src/Auth0Client.ts:892</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3053,7 +3056,7 @@ <h3>check<wbr>Session</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L644">src/Auth0Client.ts:644</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L696">src/Auth0Client.ts:696</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -3064,7 +3067,7 @@ <h3>check<wbr>Session</h3>
<p>Check if the user is logged in using <code>getTokenSilently</code>. The difference
with <code>getTokenSilently</code> is that this doesn&#39;t return a token, but it will
pre-fill the token cache.</p>
<p>This method also heeds the <code>auth0.is.authenticated</code> cookie, as an optimization
<p>This method also heeds the <code>auth0.{clientId}.is.authenticated</code> cookie, as an optimization
to prevent calling Auth0 unnecessarily. If the cookie is not present because
there was no previous login (or it has expired) then tokens will not be refreshed.</p>
<p>It should be used for silently logging in the user when you instantiate the
Expand Down Expand Up @@ -3093,7 +3096,7 @@ <h3>get<wbr>IdToken<wbr>Claims</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L510">src/Auth0Client.ts:510</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L560">src/Auth0Client.ts:560</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3128,7 +3131,7 @@ <h3>get<wbr>Token<wbr>Silently</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L684">src/Auth0Client.ts:684</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L745">src/Auth0Client.ts:745</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3173,7 +3176,7 @@ <h3>get<wbr>Token<wbr>With<wbr>Popup</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L779">src/Auth0Client.ts:779</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L840">src/Auth0Client.ts:840</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3211,7 +3214,7 @@ <h3>get<wbr>User</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L480">src/Auth0Client.ts:480</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L530">src/Auth0Client.ts:530</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3256,7 +3259,7 @@ <h3>handle<wbr>Redirect<wbr>Callback</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L550">src/Auth0Client.ts:550</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L600">src/Auth0Client.ts:600</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3287,7 +3290,7 @@ <h3>is<wbr>Authenticated</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L818">src/Auth0Client.ts:818</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L879">src/Auth0Client.ts:879</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -3312,7 +3315,7 @@ <h3>login<wbr>With<wbr>Popup</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L381">src/Auth0Client.ts:381</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L429">src/Auth0Client.ts:429</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3359,7 +3362,7 @@ <h3>login<wbr>With<wbr>Redirect</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L538">src/Auth0Client.ts:538</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L588">src/Auth0Client.ts:588</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3393,7 +3396,7 @@ <h3>logout</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/Auth0Client.ts#L863">src/Auth0Client.ts:863</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/Auth0Client.ts#L924">src/Auth0Client.ts:924</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
15 changes: 9 additions & 6 deletions docs/classes/authenticationerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2773,6 +2773,9 @@
<li class=" tsd-kind-class">
<a href="localstoragecache.html" class="tsd-kind-icon">Local<wbr>Storage<wbr>Cache</a>
</li>
<li class=" tsd-kind-class">
<a href="mfarequirederror.html" class="tsd-kind-icon">Mfa<wbr>Required<wbr>Error</a>
</li>
<li class=" tsd-kind-class">
<a href="popupcancellederror.html" class="tsd-kind-icon">Popup<wbr>Cancelled<wbr>Error</a>
</li>
Expand Down Expand Up @@ -2935,7 +2938,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Overrides <a href="genericerror.html">GenericError</a>.<a href="genericerror.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/errors.ts#L26">src/errors.ts:26</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/errors.ts#L26">src/errors.ts:26</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -2966,7 +2969,7 @@ <h3>app<wbr>State</h3>
<div class="tsd-signature tsd-kind-icon">app<wbr>State<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/errors.ts#L31">src/errors.ts:31</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/errors.ts#L31">src/errors.ts:31</a></li>
</ul>
</aside>
</section>
Expand All @@ -2977,7 +2980,7 @@ <h3>error</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="genericerror.html">GenericError</a>.<a href="genericerror.html#error">error</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/errors.ts#L5">src/errors.ts:5</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/errors.ts#L5">src/errors.ts:5</a></li>
</ul>
</aside>
</section>
Expand All @@ -2988,7 +2991,7 @@ <h3>error_<wbr>description</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="genericerror.html">GenericError</a>.<a href="genericerror.html#error_description">error_description</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/errors.ts#L5">src/errors.ts:5</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/errors.ts#L5">src/errors.ts:5</a></li>
</ul>
</aside>
</section>
Expand Down Expand Up @@ -3031,7 +3034,7 @@ <h3>state</h3>
<div class="tsd-signature tsd-kind-icon">state<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/errors.ts#L30">src/errors.ts:30</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/errors.ts#L30">src/errors.ts:30</a></li>
</ul>
</aside>
</section>
Expand All @@ -3049,7 +3052,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> from<wbr>Payload</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="genericerror.html">GenericError</a>.<a href="genericerror.html#frompayload">fromPayload</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/errors.ts#L11">src/errors.ts:11</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/errors.ts#L11">src/errors.ts:11</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
19 changes: 11 additions & 8 deletions docs/classes/cachekey.html
Original file line number Diff line number Diff line change
Expand Up @@ -2770,6 +2770,9 @@
<li class=" tsd-kind-class">
<a href="localstoragecache.html" class="tsd-kind-icon">Local<wbr>Storage<wbr>Cache</a>
</li>
<li class=" tsd-kind-class">
<a href="mfarequirederror.html" class="tsd-kind-icon">Mfa<wbr>Required<wbr>Error</a>
</li>
<li class=" tsd-kind-class">
<a href="popupcancellederror.html" class="tsd-kind-icon">Popup<wbr>Cancelled<wbr>Error</a>
</li>
Expand Down Expand Up @@ -2917,7 +2920,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/cache/shared.ts#L14">src/cache/shared.ts:14</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/cache/shared.ts#L14">src/cache/shared.ts:14</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -2942,7 +2945,7 @@ <h3>audience</h3>
<div class="tsd-signature tsd-kind-icon">audience<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/cache/shared.ts#L14">src/cache/shared.ts:14</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/cache/shared.ts#L14">src/cache/shared.ts:14</a></li>
</ul>
</aside>
</section>
Expand All @@ -2952,7 +2955,7 @@ <h3>client_<wbr>id</h3>
<div class="tsd-signature tsd-kind-icon">client_<wbr>id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/cache/shared.ts#L12">src/cache/shared.ts:12</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/cache/shared.ts#L12">src/cache/shared.ts:12</a></li>
</ul>
</aside>
</section>
Expand All @@ -2962,7 +2965,7 @@ <h3>prefix</h3>
<div class="tsd-signature tsd-kind-icon">prefix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/cache/shared.ts#L16">src/cache/shared.ts:16</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/cache/shared.ts#L16">src/cache/shared.ts:16</a></li>
</ul>
</aside>
</section>
Expand All @@ -2972,7 +2975,7 @@ <h3>scope</h3>
<div class="tsd-signature tsd-kind-icon">scope<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/cache/shared.ts#L13">src/cache/shared.ts:13</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/cache/shared.ts#L13">src/cache/shared.ts:13</a></li>
</ul>
</aside>
</section>
Expand All @@ -2989,7 +2992,7 @@ <h3>to<wbr>Key</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/cache/shared.ts#L26">src/cache/shared.ts:26</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/cache/shared.ts#L26">src/cache/shared.ts:26</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -3012,7 +3015,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> from<wbr>Cache<wbr>Entry<
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/cache/shared.ts#L46">src/cache/shared.ts:46</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/cache/shared.ts#L46">src/cache/shared.ts:46</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3044,7 +3047,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> from<wbr>Key</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/02e7350/src/cache/shared.ts#L35">src/cache/shared.ts:35</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/1de6427/src/cache/shared.ts#L35">src/cache/shared.ts:35</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading