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

Refresh token after unlocking device #1151

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.git
.editorconfig
/.vscode/*
/node_modules
/e2e
/docs
.gitignore
*.zip
55 changes: 53 additions & 2 deletions docs/classes/AuthConfig.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ <h6><b>Properties</b></h6>
<span class="modifier">Optional</span>
<a href="#logoutUrl" >logoutUrl</a>
</li>
<li>
<span class="modifier">Public</span>
<span class="modifier">Optional</span>
<a href="#maxRefreshRetries" >maxRefreshRetries</a>
</li>
<li>
<span class="modifier">Public</span>
<span class="modifier">Optional</span>
Expand Down Expand Up @@ -340,7 +345,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="258" class="link-to-prism">projects/lib/src/auth.config.ts:258</a></div>
<div class="io-line">Defined in <a href="" data-line="264" class="link-to-prism">projects/lib/src/auth.config.ts:264</a></div>
</td>
</tr>

Expand Down Expand Up @@ -873,6 +878,46 @@ <h3 id="inputs">
<tr>
<td class="col-md-4">
<div class="io-description"><p>The logout url.</p>
</div>
</td>
</tr>

</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="maxRefreshRetries"></a>
<span class="name">
<span class="modifier">Public</span>
<span class="modifier">Optional</span>
<span ><b>maxRefreshRetries</b></span>
<a href="#maxRefreshRetries"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>1</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="264" class="link-to-prism">projects/lib/src/auth.config.ts:264</a></div>
</td>
</tr>

<tr>
<td class="col-md-4">
<div class="io-description"><p>Give a max number of retries that can be used for refreshing a token.
Exponential back-off is used to prevent overloading the iDP.</p>
</div>
</td>
</tr>
Expand Down Expand Up @@ -981,7 +1026,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="271" class="link-to-prism">projects/lib/src/auth.config.ts:271</a></div>
<div class="io-line">Defined in <a href="" data-line="277" class="link-to-prism">projects/lib/src/auth.config.ts:277</a></div>
</td>
</tr>

Expand Down Expand Up @@ -2378,6 +2423,12 @@ <h3 id="inputs">
*/
public disablePKCE? &#x3D; false;

/**
* Give a max number of retries that can be used for refreshing a token.
* Exponential back-off is used to prevent overloading the iDP.
*/
public maxRefreshRetries? &#x3D; 1;

constructor(json?: Partial&lt;AuthConfig&gt;) {
if (json) {
Object.assign(this, json);
Expand Down
Loading