feat: allow in generic provider to register

This commit is contained in:
Nevo David 2025-06-08 22:10:35 +07:00
parent f72bbb9de3
commit 68c8be4988
3 changed files with 3 additions and 9 deletions

View File

@ -144,7 +144,7 @@ export class AuthService {
return user;
}
if (!(await this.canRegister())) {
if (!(await this.canRegister()) && provider !== Provider.GENERIC) {
throw new Error('Registration is disabled');
}

View File

@ -33,10 +33,11 @@ export const OauthProvider = () => {
alt="genericOauth"
width={40}
height={40}
className="-mt-[7px]"
/>
</div>
<div>
{t('sign_in_with', 'Sign in with')}
{t('sign_in_with', 'Sign in with')}&nbsp;
{oauthDisplayName || 'OAuth'}
</div>
</div>

View File

@ -7,13 +7,6 @@ import { useVariables } from '@gitroom/react/helpers/variable.context';
import { TopTitle } from '@gitroom/frontend/components/launches/helpers/top.title.component';
import { useModals } from '@mantine/modals';
import { LoadingComponent } from '@gitroom/frontend/components/layout/loading';
import {
NeynarAuthButton,
NeynarContextProvider,
Theme,
useNeynarContext,
} from '@neynar/react';
import { INeynarAuthenticatedUser } from '@neynar/react/dist/types/common';
import { ButtonCaster } from '@gitroom/frontend/components/auth/providers/farcaster.provider';
export const WrapcasterProvider: FC<Web3ProviderInterface> = (props) => {
const [_, state] = props.nonce.split('||');