lication within your tenant.</p>
<p>The below example is taken from a SharePoint Framework webpart.</p>
<h3 id="connect-to-sharepoint-as-current-user">Connect to SharePoint as Current User<a class="headerlink" href="#connect-to-sharepoint-as-current-user" title="Permanent link">&para;</a></h3>
<pre><code class="language-TypeScript">import { sp } from &quot;@pnp/sp/presets/all&quot;;

// ...

protected async onInit(): Promise&lt;void&gt; {

  await super.onInit();

  // other init code may be present

  sp.s