Skip to content

Commit

Permalink
Release v1.4.0 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Apr 3, 2023
2 parents 0245f71 + 93726fa commit 8203ceb
Show file tree
Hide file tree
Showing 18 changed files with 150 additions and 96 deletions.
11 changes: 9 additions & 2 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
--dark-hl-5: #9CDCFE;
--light-hl-6: #795E26;
--dark-hl-6: #DCDCAA;
--light-hl-7: #AF00DB;
--dark-hl-7: #C586C0;
--light-hl-7: #0070C1;
--dark-hl-7: #4FC1FF;
--light-hl-8: #AF00DB;
--dark-hl-8: #C586C0;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}
Expand All @@ -28,6 +30,7 @@
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--code-background: var(--light-code-background);
} }

Expand All @@ -40,6 +43,7 @@
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--code-background: var(--dark-code-background);
} }

Expand All @@ -52,6 +56,7 @@
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--code-background: var(--light-code-background);
}

Expand All @@ -64,6 +69,7 @@
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--code-background: var(--dark-code-background);
}

Expand All @@ -75,4 +81,5 @@
.hl-5 { color: var(--hl-5); }
.hl-6 { color: var(--hl-6); }
.hl-7 { color: var(--hl-7); }
.hl-8 { color: var(--hl-8); }
pre, code { background: var(--code-background); }
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/classes/insufficientscopeerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">InsufficientScopeError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L57">packages/oauth2-bearer/src/errors.ts:57</a></li></ul></aside>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L57">packages/oauth2-bearer/src/errors.ts:57</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -69,14 +69,14 @@ <h5>message: <span class="tsd-signature-type">string</span><span class="tsd-sign
<h4 class="tsd-returns-title">Returns <a href="InsufficientScopeError.html" class="tsd-signature-type" data-tsd-kind="Class">InsufficientScopeError</a></h4><aside class="tsd-sources">
<p>Overrides <a href="UnauthorizedError.html">UnauthorizedError</a>.<a href="UnauthorizedError.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L62">packages/oauth2-bearer/src/errors.ts:62</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L62">packages/oauth2-bearer/src/errors.ts:62</a></li></ul></aside></li></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 id="code" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>code</span><a href="#code" 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>
<div class="tsd-signature">code<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;insufficient_scope&#39;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L58">packages/oauth2-bearer/src/errors.ts:58</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L58">packages/oauth2-bearer/src/errors.ts:58</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="headers" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>headers</span><a href="#headers" 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>
<div class="tsd-signature">headers<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span>WWW-Authenticate<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
Expand All @@ -87,7 +87,7 @@ <h4>Type declaration</h4>
<h5>WWW-<wbr/>Authenticate<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div><aside class="tsd-sources">
<p>Inherited from <a href="UnauthorizedError.html">UnauthorizedError</a>.<a href="UnauthorizedError.html#headers">headers</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L13">packages/oauth2-bearer/src/errors.ts:13</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L13">packages/oauth2-bearer/src/errors.ts:13</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="message" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>message</span><a href="#message" 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>
<div class="tsd-signature">message<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
Expand All @@ -111,13 +111,13 @@ <h3 class="tsd-anchor-link"><span>status</span><a href="#status" aria-label="Per
<div class="tsd-signature">status<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 403</span></div><aside class="tsd-sources">
<p>Overrides <a href="UnauthorizedError.html">UnauthorizedError</a>.<a href="UnauthorizedError.html#status">status</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L59">packages/oauth2-bearer/src/errors.ts:59</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L59">packages/oauth2-bearer/src/errors.ts:59</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="statusCode" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>status<wbr/>Code</span><a href="#statusCode" 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>
<div class="tsd-signature">status<wbr/>Code<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 403</span></div><aside class="tsd-sources">
<p>Overrides <a href="UnauthorizedError.html">UnauthorizedError</a>.<a href="UnauthorizedError.html#statusCode">statusCode</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L60">packages/oauth2-bearer/src/errors.ts:60</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L60">packages/oauth2-bearer/src/errors.ts:60</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="prepareStackTrace" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagOptional">Optional</code> <span>prepare<wbr/>Stack<wbr/>Trace</span><a href="#prepareStackTrace" 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>
<div class="tsd-signature">prepare<wbr/>Stack<wbr/>Trace<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>err<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span>, stackTraces<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CallSite</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span></div>
Expand Down
12 changes: 6 additions & 6 deletions docs/classes/invalidrequesterror.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">InvalidRequestError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L27">packages/oauth2-bearer/src/errors.ts:27</a></li></ul></aside>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L27">packages/oauth2-bearer/src/errors.ts:27</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -69,14 +69,14 @@ <h5>message: <span class="tsd-signature-type">string</span><span class="tsd-sign
<h4 class="tsd-returns-title">Returns <a href="InvalidRequestError.html" class="tsd-signature-type" data-tsd-kind="Class">InvalidRequestError</a></h4><aside class="tsd-sources">
<p>Overrides <a href="UnauthorizedError.html">UnauthorizedError</a>.<a href="UnauthorizedError.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L32">packages/oauth2-bearer/src/errors.ts:32</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L32">packages/oauth2-bearer/src/errors.ts:32</a></li></ul></aside></li></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 id="code" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>code</span><a href="#code" 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>
<div class="tsd-signature">code<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;invalid_request&#39;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L28">packages/oauth2-bearer/src/errors.ts:28</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L28">packages/oauth2-bearer/src/errors.ts:28</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="headers" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>headers</span><a href="#headers" 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>
<div class="tsd-signature">headers<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span>WWW-Authenticate<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
Expand All @@ -87,7 +87,7 @@ <h4>Type declaration</h4>
<h5>WWW-<wbr/>Authenticate<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div><aside class="tsd-sources">
<p>Inherited from <a href="UnauthorizedError.html">UnauthorizedError</a>.<a href="UnauthorizedError.html#headers">headers</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L13">packages/oauth2-bearer/src/errors.ts:13</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L13">packages/oauth2-bearer/src/errors.ts:13</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="message" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>message</span><a href="#message" 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>
<div class="tsd-signature">message<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
Expand All @@ -111,13 +111,13 @@ <h3 class="tsd-anchor-link"><span>status</span><a href="#status" aria-label="Per
<div class="tsd-signature">status<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 400</span></div><aside class="tsd-sources">
<p>Overrides <a href="UnauthorizedError.html">UnauthorizedError</a>.<a href="UnauthorizedError.html#status">status</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L29">packages/oauth2-bearer/src/errors.ts:29</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L29">packages/oauth2-bearer/src/errors.ts:29</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="statusCode" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>status<wbr/>Code</span><a href="#statusCode" 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>
<div class="tsd-signature">status<wbr/>Code<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 400</span></div><aside class="tsd-sources">
<p>Overrides <a href="UnauthorizedError.html">UnauthorizedError</a>.<a href="UnauthorizedError.html#statusCode">statusCode</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/fe0dace/packages/oauth2-bearer/src/errors.ts#L30">packages/oauth2-bearer/src/errors.ts:30</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/node-oauth2-jwt-bearer/blob/0245f71/packages/oauth2-bearer/src/errors.ts#L30">packages/oauth2-bearer/src/errors.ts:30</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="prepareStackTrace" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagOptional">Optional</code> <span>prepare<wbr/>Stack<wbr/>Trace</span><a href="#prepareStackTrace" 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>
<div class="tsd-signature">prepare<wbr/>Stack<wbr/>Trace<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>err<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span>, stackTraces<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CallSite</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span></div>
Expand Down
Loading

0 comments on commit 8203ceb

Please sign in to comment.