mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-12 09:56:08 +00:00
feat(auth): enhance registration page with OAuth support for Google and GitHub
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user