Extract The Authentication token in PowerApps Plugin to call SharePoint API
I am working on a case where a user triggers a plugin to check documents in SharePoint. The plugin is supposed to return the number of documents created. For authentication, I want to avoid generating a token within the plugin using a client secret or other similar methods. Instead, I would like to leverage the authentication context of the user who triggered the plugin to make the SharePoint API call.