OneDrive
A Microsoft file hosting and synchronization service.
1,195 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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