Include login.js from this package to your frontend template, Get SSO button css id & class from microsoft_auth template and add same to your custom button in frontend template, that's it.