I once had to implement an authentication feature for a Chrome extension through Cognito with Google Workspace accounts via OAuth2 or MS accounts via SAML as IdPs.
That made me want to die.
Just understanding what I want to do or have to do was unbelievably hard, and probably I still don't understand what I did honestly.