Skip to content

Commit

Permalink
Release 1.7.0-beta.1 (#327)
Browse files Browse the repository at this point in the history
* Release 1.7.0-beta.1

* Tweaked intermittently-failing test
  • Loading branch information
Steve Hobbs authored Jan 8, 2020
1 parent 5ece8d2 commit ed11544
Show file tree
Hide file tree
Showing 24 changed files with 5,665 additions and 149 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [v1.7.0-beta.1](https://github.com/auth0/auth0-spa-js/tree/v1.7.0-beta.1) (2020-01-08)

**Added**

- Ability to use either an in-memory cache (the default) or localstorage to store tokens - [stevehobbsdev](https://github.com/stevehobbsdev) - https://github.com/auth0/auth0-spa-js/pull/303
- Added support for rotating refresh tokens - [stevehobbsdev](https://github.com/stevehobbsdev) - https://github.com/auth0/auth0-spa-js/pull/315

## [v1.6.0](https://github.com/auth0/auth0-spa-js/tree/v1.6.0) (2019-11-19)

**Added**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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.2/auth0-spa-js.production.js"></script>
<script src="https://cdn.auth0.com/js/auth0-spa-js/1.7.0-beta.1/auth0-spa-js.production.js"></script>
```

Using [npm](https://npmjs.org):
Expand Down
4 changes: 1 addition & 3 deletions cypress/integration/getTokenSilently.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ describe('getTokenSilently', function() {
cy.toggleSwitch('use-cache');

cy.login().then(() => {
cy.reload();

cy.toggleSwitch('refresh-tokens').wait(500);
cy.toggleSwitch('refresh-tokens').wait(250);

cy.get('[data-cy=get-token]')
.click()
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

55 changes: 43 additions & 12 deletions docs/classes/auth0client.html
Original file line number Diff line number Diff line change
Expand Up @@ -2381,6 +2381,9 @@
<li class=" tsd-kind-constructor tsd-parent-kind-class">
<a href="auth0client.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="auth0client.html#cachelocation" class="tsd-kind-icon">cache<wbr>Location</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="auth0client.html#buildauthorizeurl" class="tsd-kind-icon">build<wbr>Authorize<wbr>Url</a>
</li>
Expand Down Expand Up @@ -2419,6 +2422,9 @@
<li class=" tsd-kind-class">
<a href="fakelock.html" class="tsd-kind-icon">Fake<wbr>Lock</a>
</li>
<li class=" tsd-kind-class">
<a href="genericerror.html" class="tsd-kind-icon">Generic<wbr>Error</a>
</li>
<li class=" tsd-kind-interface tsd-is-not-exported">
<a href="../interfaces/auth0clientoptions.html" class="tsd-kind-icon">Auth0<wbr>Client<wbr>Options</a>
</li>
Expand Down Expand Up @@ -2446,6 +2452,9 @@
<li class=" tsd-kind-interface tsd-is-not-exported">
<a href="../interfaces/redirectloginresult.html" class="tsd-kind-icon">Redirect<wbr>Login<wbr>Result</a>
</li>
<li class=" tsd-kind-interface tsd-is-not-exported">
<a href="../interfaces/tokenendpointoptions.html" class="tsd-kind-icon">Token<wbr>Endpoint<wbr>Options</a>
</li>
<li class=" tsd-kind-interface tsd-is-not-exported">
<a href="../interfaces/getidtokenclaimsoptions.html" class="tsd-kind-icon">get<wbr>IdToken<wbr>Claims<wbr>Options</a>
</li>
Expand All @@ -2461,6 +2470,9 @@
<li class=" tsd-kind-variable">
<a href="../globals.html#releaselockmock" class="tsd-kind-icon">release<wbr>Lock<wbr>Mock</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#cachefactory" class="tsd-kind-icon">cache<wbr>Factory</a>
</li>
<li class=" tsd-kind-function">
<a href="../globals.html#createauth0client" class="tsd-kind-icon">create<wbr>Auth0<wbr>Client</a>
</li>
Expand Down Expand Up @@ -2493,6 +2505,12 @@ <h3>Constructors</h3>
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="auth0client.html#constructor" class="tsd-kind-icon">constructor</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class"><a href="auth0client.html#cachelocation" class="tsd-kind-icon">cache<wbr>Location</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
Expand Down Expand Up @@ -2523,7 +2541,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/2ace866/src/Auth0Client.ts#L36">src/Auth0Client.ts:36</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L47">src/Auth0Client.ts:47</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -2537,6 +2555,19 @@ <h4 class="tsd-returns-title">Returns <a href="auth0client.html" class="tsd-sign
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="cachelocation" class="tsd-anchor"></a>
<h3>cache<wbr>Location</h3>
<div class="tsd-signature tsd-kind-icon">cache<wbr>Location<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/5ece8d2/src/Auth0Client.ts#L47">src/Auth0Client.ts:47</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
Expand All @@ -2549,7 +2580,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/2ace866/src/Auth0Client.ts#L114">src/Auth0Client.ts:114</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L140">src/Auth0Client.ts:140</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2582,7 +2613,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/2ace866/src/Auth0Client.ts#L232">src/Auth0Client.ts:232</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L283">src/Auth0Client.ts:283</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2613,7 +2644,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/2ace866/src/Auth0Client.ts#L325">src/Auth0Client.ts:325</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L390">src/Auth0Client.ts:390</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2629,7 +2660,7 @@ <h3>get<wbr>Token<wbr>Silently</h3>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> options: <a href="../interfaces/gettokensilentlyoptions.html" class="tsd-signature-type">GetTokenSilentlyOptions</a><span class="tsd-signature-symbol"> =&nbsp;{audience: this.options.audience,scope: this.options.scope || this.DEFAULT_SCOPE,ignoreCache: false}</span></h5>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> options: <a href="../interfaces/gettokensilentlyoptions.html" class="tsd-signature-type">GetTokenSilentlyOptions</a><span class="tsd-signature-symbol"> =&nbsp;{}</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
Expand All @@ -2648,7 +2679,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/2ace866/src/Auth0Client.ts#L422">src/Auth0Client.ts:422</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L447">src/Auth0Client.ts:447</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2685,7 +2716,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/2ace866/src/Auth0Client.ts#L212">src/Auth0Client.ts:212</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L258">src/Auth0Client.ts:258</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2717,7 +2748,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/2ace866/src/Auth0Client.ts#L265">src/Auth0Client.ts:265</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L325">src/Auth0Client.ts:325</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2748,7 +2779,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/2ace866/src/Auth0Client.ts#L451">src/Auth0Client.ts:451</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L480">src/Auth0Client.ts:480</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2772,7 +2803,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/2ace866/src/Auth0Client.ts#L158">src/Auth0Client.ts:158</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L194">src/Auth0Client.ts:194</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2812,7 +2843,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/2ace866/src/Auth0Client.ts#L254">src/Auth0Client.ts:254</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L314">src/Auth0Client.ts:314</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2845,7 +2876,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/2ace866/src/Auth0Client.ts#L466">src/Auth0Client.ts:466</a></li>
<li>Defined in <a href="https://github.com/auth0/auth0-spa-js/blob/5ece8d2/src/Auth0Client.ts#L495">src/Auth0Client.ts:495</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit ed11544

Please sign in to comment.