Hi John,
Alternative approach:We use SharePointOnline (SPO) as well as OneDrive. If you have the same setup, then you could try this:
Once you have used a SPO link on your computer, it will probably have been mapped up within your OneDrive as well. As such, the OneDrive SPO link has a shortcut in style with:
C:\Users\Paul\OneDrive - Paul\SPO Folder\SPO Subfolder\...
Instead of having the process use SPO via a browser, it can use SPO via its shortcut. That way, you avoid interacting with an ever changing SPO interface that shows new popups every second week and requires you to login again and again without end, not to mention the infamous Sync button messing up your folders and files.
------------------------------
Happy coding!
Paul
Sweden
------------------------------
Happy coding!
Paul, Sweden
(By all means, do not mark this as the best answer!)