 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><pre><code class="js"><span class="hl-0">withAuthenticationRequired</span><span class="hl-1">(</span><span class="hl-5">Profile</span><span class="hl-1">, {</span><br/><span class="hl-1">  </span><span class="hl-0">onBeforeAuthentication</span><span class="hl-5">:</span><span class