lding a SPA you likely need to handle authentication. For this we support the <a href="../../concepts/authentication/#MSAL-in-Browser">msal library</a> which you can use directly or as a pattern to roll your own MSAL implementation behavior.</p>
</blockquote>
<pre><code class="language-TypeScript">import { graphfi, GraphBrowser } from &quot;@pnp/graph&quot;;
import &quot;@pnp/graph/users&quot;;

const graph = graphfi().using(GraphBrowser());

await graph.users();
</code></pre>
<p>You can also set a baseUrl.