ase make sure you respect those requirements.</p>
<p>Please also note, that you have to request the <code>offline_access</code> scope to get a refresh token.</p>
<p>To refresh your token, just call the <code>refreshToken</code> method:</p>
<b>Example :</b><div><pre class="line-numbers"><code class="language-typescript">this.oauthService.refreshToken();</code></pre></div><h2>Automatically refreshing a token when/ before it expires (Code Flow and Implicit Flow)</h2>
<p>To automatically refresh a token when/ s