 sp = spfi().using(SPDefault({
        baseUrl: 'https://{my tenant}.sharepoint.com/sites/dev/',
        msal: {
            config: config,
            scopes: [ 'https://{my tenant}.sharepoint.com/.default' ]
        }
    }));

    // make a call to SharePoint and log it in the console
    const w = await sp.web.select(&quot;Title&quot;, &quot;Description&quot;)();
    console.log(JSON.stringify(w, null, 4));
}();
</code></pre>
<h3 id="using-pnpgraph-graphfi-factory-interface-in-nodejs">Using @pnp/graph 