aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/OAuth2Button.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/OAuth2Button.tsx')
-rw-r--r--src/components/OAuth2Button.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/OAuth2Button.tsx b/src/components/OAuth2Button.tsx
index 1ee456c..25c5871 100644
--- a/src/components/OAuth2Button.tsx
+++ b/src/components/OAuth2Button.tsx
@@ -11,7 +11,6 @@ import { selectable } from "../commonStyles";
interface OAuth2ButtonProps {
scopes?: OAuthScopes[],
- path?: string,
rerender: () => void
}
@@ -47,7 +46,7 @@ const errorStyles = css`
`;
async function login(props: OAuth2ButtonProps, errorDialog: React.RefObject<HTMLDivElement>, setDisabled: (newState: boolean) => void) {
- await authenticate(props.scopes, setDisabled, props.path).catch((reason: APIErrors) => {
+ await authenticate(props.scopes, setDisabled).catch((reason: APIErrors) => {
// Display Error Message
if (errorDialog.current) {
errorDialog.current.style.visibility = "visible";
@@ -60,7 +59,7 @@ async function login(props: OAuth2ButtonProps, errorDialog: React.RefObject<HTML
throw reason.Error;
});
- if (checkScopes(props.scopes, props.path)) {
+ if (checkScopes(props.scopes)) {
props.rerender();
}
}