Microsoft SSO not working for emails having onmicorsoft.com

When we try to login to our http://app.dev.motiv.team/ using Microsoft 365 SSO option, it says that the account doesn’t exist on Microsoft
This happens for MS 365 accounts only, having onmicrosoft.com in the email
But for other emails having gmail , outlook , it works fine