I am using the NodeJS yeoman generator to develop a PowerPoint add-in and the Office JS API. I want to implement a functionality that connects to a OneDrive folder from the task pane, where you can select the files you want to read, and either load the data onto the active slide (likely a text file or an Excel file) or save it in some local state/storage and use it later.
From my researching, this came up the most: https://learn.microsoft.com/en-us/training/modules/msgraph-access-file-data/
But I wanted to see if there is a more straightforward or a better way; maybe using a NodeJS package?
Any help would be appreciated. An example which uses PowerPoint Office API would be welcomes as well.