Files
prowler/ui/app/(auth)/(guest-only)/sign-in/page.tsx
T

25 lines
649 B
TypeScript

import { AuthForm } from "@/components/auth/oss";
import {
getAuthUrl,
isGithubOAuthEnabled,
isGoogleOAuthEnabled,
} from "@/lib/helper";
import { isSelfRegistrationEnabled } from "@/lib/shared/env";
const SignIn = () => {
const GOOGLE_AUTH_URL = getAuthUrl("google");
const GITHUB_AUTH_URL = getAuthUrl("github");
return (
<AuthForm
type="sign-in"
googleAuthUrl={GOOGLE_AUTH_URL}
githubAuthUrl={GITHUB_AUTH_URL}
isGoogleOAuthEnabled={isGoogleOAuthEnabled}
isGithubOAuthEnabled={isGithubOAuthEnabled}
isSelfRegistrationEnabled={isSelfRegistrationEnabled()}
/>
);
};
export default SignIn;