⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
'use client';
import { ShieldCheck } from 'lucide-react';
import { useTranslations } from 'next-intl';
import { Button } from '@/components/ui/button';
import { Field } from '@/components/ui/field';
import GoogleIcon from '@/components/common/GoogleIcon';
import { useAuthConfig } from '@/services/authConfig.service';
// Signing in through a provider covers sign-up too: an address without an account
// gets one, subject to the instance registration mode.
export default function AuthRegisterProviders({
pending,
onOidc,
onGoogle,
}: {
pending: boolean;
onOidc: () => void;
onGoogle: () => void;
}) {
const t = useTranslations('auth.register');
const authConfig = useAuthConfig();
return (
<Field className="gap-2">
{authConfig?.oidc && (
<Button type="button" variant="outline" onClick={onOidc} disabled={pending}>
<ShieldCheck />
{/* The operator named their own identity provider, so the label is shown
as given rather than translated. */}
{authConfig.oidcLabel || t('withSso')}
</Button>
)}
{authConfig?.google && (
<Button type="button" variant="outline" onClick={onGoogle} disabled={pending}>
<GoogleIcon className="size-4" />
{t('withGoogle')}
</Button>
)}
</Field>
);
}