diff --git a/frontend/package.json b/frontend/package.json index f35f3e88..0d34ab1f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -31,6 +31,7 @@ "react-google-login": "^5.2.2", "react-json-schema": "^1.2.2", "react-jsonschema-form": "^1.8.1", + "react-microsoft-login": "^1.15.0", "react-router-dom": "^5.2.0", "react-scripts": "4.0.2", "react-table": "^7.7.0", diff --git a/frontend/src/components/auth/Login.tsx b/frontend/src/components/auth/Login.tsx index 295aeda3..34232a05 100644 --- a/frontend/src/components/auth/Login.tsx +++ b/frontend/src/components/auth/Login.tsx @@ -6,6 +6,7 @@ import { GoogleLoginResponseOffline, } from "react-google-login"; +import MicrosoftLogin from "react-microsoft-login"; import authAPIClient from "../../APIClients/AuthAPIClient"; import { HOME_PAGE, SIGNUP_PAGE } from "../../constants/Routes"; import AuthContext from "../../contexts/AuthContext"; @@ -89,6 +90,13 @@ const Login = (): React.ReactElement => { window.alert(JSON.stringify(error)) } /> + { + // eslint-disable-next-line no-alert + window.alert(JSON.stringify(error)); + }} + />