I found the following workaround which works for us as it is not impacted by the 2,700 character limit of bubble’s OAuth2 User Agent Flow:
You will need to apply a few changes to the settings to make it work for OAuth with Microsoft as this tutorial was made for OAuth with Google. If you need help with that, feel free to DM me (free of charge).