Clarification on Redirect URI for OneDrive Authentication

I am developing a custom app to read a file from my OneDrive.

To authenticate with Microsoft and access the file, I need to configure a redirect URI. I have configured the following redirect URIs in the Azure App Registration:

  • Local: http://localhost:10001/auth/callback
  • Production: https://oauth.freshdev.io/auth/callback

However, the authentication is not working, and I’m encountering an “Invalid state” error during the callback.

Could you please confirm whether these are the correct redirect URIs to use for a Freshworks custom app? Or should I configure the following URL as the redirect URI instead?d3h0owdjgzys62.cloudfront.net

Thanks,
Pavithra Selvaraj

Can you share the url to which the callback redirects with the query param as well ?

The redirect url seems to be correct though