One Drive File Picker v8

Harsha Vardhini 25 Reputation points
2023-10-11T14:32:10.7766667+00:00

Is there a way to configure my OneDrive File Picker to work with both my business and personal accounts using a common configuration? Currently, I have to use a different configuration for each account, which is inconvenient. Furthermore, even if I am logged into my personal account via file picker, the files are not loaded unless I am logged in to that account in another browser tab.

  const baseUrl = 'https://{}-my.sharepoint.com';
    const msalParams = {
        auth: {
            clientId: '{clientId}',
            authority: 'https://login.microsoftonline.com/{tenant-id}',
            redirectUri: redirectUrl
        },
    };

  const baseUrl = 'https://onedrive.live.com/picker';
    const msalParams = {
        auth: {
            clientId: '{clientId}',
            authority: 'https://login.microsoftonline.com/common',
            redirectUri: redirectUrl
        },
    };


I would appreciate if anyone could help me out on this

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
848 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,559 questions
0 comments No comments
{count} votes