diff options
author | 2021-02-17 09:30:47 +0300 | |
---|---|---|
committer | 2021-02-17 09:30:47 +0300 | |
commit | fba316f235a3871743427f37b3bbd07bea6d77bd (patch) | |
tree | af8a53d2677b4b135463899fb271ed127384440e /src/components | |
parent | Cleans Up OAuth Error Logging (diff) |
Removes Path From Auth
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/OAuth2Button.tsx | 5 |
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(); } } |