feat(auth): enhance registration page with OAuth support for Google and GitHub

This commit is contained in:
Yusuf İpek
2026-04-10 22:50:02 +03:00
parent c457971ff5
commit f622752233
2 changed files with 90 additions and 3 deletions
+14 -1
View File
@@ -2,5 +2,18 @@ import { isInviteCodeRequired } from '@/lib/feature-flags';
import RegisterPageClient from './register-page-client';
export default function RegisterPage() {
return <RegisterPageClient requireInviteCode={isInviteCodeRequired()} />;
const googleEnabled = Boolean(
process.env.GOOGLE_CLIENT_ID && process.env.GOOGLE_CLIENT_SECRET,
);
const githubEnabled = Boolean(
process.env.GITHUB_CLIENT_ID && process.env.GITHUB_CLIENT_SECRET,
);
return (
<RegisterPageClient
requireInviteCode={isInviteCodeRequired()}
googleEnabled={googleEnabled}
githubEnabled={githubEnabled}
/>
);
}