Skip to content

Commit

Permalink
recover some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DinuWije committed Feb 15, 2023
1 parent de9a422 commit fac5b40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-jsonschema-form": "^1.7.4",
"react-microsoft-login": "^1.15.0",
"@types/react-table": "^7.0.29",
"apollo-upload-client": "^16.0.0",
"axios": "^0.21.1",
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/components/auth/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useContext, useState } from "react";
import { Redirect, useHistory } from "react-router-dom";
import MicrosoftLogin from "react-microsoft-login";
import {
GoogleLogin,
GoogleLoginResponse,
Expand Down Expand Up @@ -89,6 +90,13 @@ const Login = (): React.ReactElement => {
window.alert(JSON.stringify(error))
}
/>
<MicrosoftLogin
clientId="REPLACE_WITH_ENV_FILE_SECRET"
authCallback={(error) => {
// eslint-disable-next-line no-alert
window.alert(JSON.stringify(error));
}}
/>
</form>
<div>
<button
Expand Down

0 comments on commit fac5b40

Please sign in to comment.