How to force switch account of Microsoft v8 file picker

Nabil Aljufri 0 Reputation points
2025-09-10T12:20:40.24+00:00

I know that file picker v8 can only use sharepoint tokens or msal token for personal account, because it is cookie based. But my app uses web application flow and must handle both work and personal account, and I need to find away to trigger the file picker to open sign in pop up even when the cookies exist.

When there is no cookie, the graph access token can work because the file picker will handle the sign in flow itself, but if the access token and the cookies do not match, the file picker is stuck at

'please try again or refresh the page. PrefetchFailure...', only when clearing live.com cache can the file picker work again.
So is there away I can trigger the file picker to change the cookie?

Microsoft 365 and Office | OneDrive | For home | Windows

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.