Skip to content

Commit b02b6ae

Browse files
Merge pull request #141 from ManyouRisms/patch-3
Fix typo
2 parents e28e14b + 88016ae commit b02b6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular-oauth2-oidc/docs/additional-documentation/refreshing-a-token-(silent-refresh).html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ <h1 id="refreshing-a-token-when-using-implicit-flow-silent-refresh-">Refreshing
546546
.oauthService
547547
.silentRefresh()
548548
.then(info =&gt; console.debug(&#39;refresh ok&#39;, info))
549-
.catch(err =&gt; console.error(&#39;refresh error&#39;, err));</code></pre><p>When there is an error in the iframe that prevents the communication with the main application, silentRefresh will give you a timeout. To configure the timespan for this, you can set the property <code>siletRefreshTimeout</code> (msec). The default value is 20.000 (20 seconds).</p>
549+
.catch(err =&gt; console.error(&#39;refresh error&#39;, err));</code></pre><p>When there is an error in the iframe that prevents the communication with the main application, silentRefresh will give you a timeout. To configure the timespan for this, you can set the property <code>silentRefreshTimeout</code> (msec). The default value is 20.000 (20 seconds).</p>
550550
<h3 id="automatically-refreshing-a-token-when-before-it-expires">Automatically refreshing a token when/ before it expires</h3>
551551
<p>To automatically refresh a token when/ some time before it expires, just call the following method after configuring the OAuthService:</p>
552552
<pre class="line-numbers"><code class="language-TypeScript">this.oauthService.setupAutomaticSilentRefresh();</code></pre><p>By default, this event is fired after 75% of the token&#39;s life time is over. You can adjust this factor by setting the property <code>timeoutFactor</code> to a value between 0 and 1. For instance, 0.5 means, that the event is fired after half of the life time is over and 0.33 triggers the event after a third.</p>

0 commit comments

Comments
 (0)