Skip to content

Commit

Permalink
re-enable google oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
ceriddenn committed Mar 27, 2023
1 parent 1ed6ccb commit 61d7264
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions apps/web/pages/auth/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@ export default function Login() {

const handleSelect = (index: number) => {
if (!authProviders) return;
if (authProviders[index].provider == 'Google') {
const errorMsg =
"Currently Google signin is disabled, we're working on it!";
createErrorToast(errorMsg);
return;
}

setCurrentProvider(authProviders[index].provider.toLowerCase());
if (
userSession?.user?.provider.toLocaleLowerCase() ==
Expand Down Expand Up @@ -234,14 +229,7 @@ export default function Login() {
boxShadow={'lg'}
borderRadius={8}
h={24}
cursor={provider == 'Google' ? 'not-allowed' : ''}
bgColor={
provider == 'Google'
? '#a3a6ab'
: selected
? 'black'
: 'white'
}
bgColor={selected ? 'black' : 'white'}
>
<Flex direction={'row'}>
<Center h={24}>
Expand Down

0 comments on commit 61d7264

Please sign in to comment.