@OneDrive
We are mainly responsible for general issues of OneDrive desktop client, but your question seems to be more related to authentication for OneDrive API which is about development.
To better help you, it's recommended to post a new question on the following forums. Thanks for your understanding.
Microsoft Tech Community --- OneDrive Developer
OneDrive Dev Center (Click Support drop down)
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.