'Is it possible to use a generic OAuth 2.0 implementation for both Azure AD authentication and Google cloud OAuth?

Is it possible to use a generic OAuth 2.0 implementation for both Azure AD authentication and Google cloud OAuth? msal.js is available for Microsoft Azure AD integration. Is there a common library that can be used to support both Azure AD authentication and Google authentication. Once both authentication providers are supported, user will be able to pick and choose a login. Is this possible?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source