There was an error obtaining credentials via Auth

New user, first time setup. Trying to add email account hosted at Microsoft 365. After confirming that EM client can indeed login into my account, EM client throws this error: There was an error obtaining credentials via Auth.

Nothing to do there after this. Other (non Microsoft) accounts are added without problems.

Please advise.

-edit- Default browser on my Mac was Brave - switching to Safari and trying to add the account actually worked. Problem solved.