mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-04 02:04:06 +00:00
25 lines
649 B
TypeScript
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;
|