login de cadastro padronizado
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-09 15:05:20 +02:00
parent 67aa015b4c
commit 2209b83820
7 changed files with 463 additions and 175 deletions
+9 -1
View File
@@ -6,6 +6,7 @@ import InputError from '@/components/input-error';
import { Button } from '@/components/ui/button';
import { Separator } from '@/components/ui/separator';
import { Spinner } from '@/components/ui/spinner';
import { cn } from '@/lib/utils';
type Props = {
routes?: {
@@ -15,6 +16,7 @@ type Props = {
label?: string;
loadingLabel?: string;
separator?: string;
separatorClassName?: string;
};
export default function PasskeyVerify({
@@ -22,6 +24,7 @@ export default function PasskeyVerify({
label,
loadingLabel,
separator,
separatorClassName,
}: Props = {}) {
const { verify, isLoading, error, isSupported } = usePasskeyVerify({
...(routes && {
@@ -64,7 +67,12 @@ export default function PasskeyVerify({
<Separator className="w-full" />
</div>
<div className="relative flex justify-center text-xs uppercase">
<span className="bg-background text-muted-foreground px-2">
<span
className={cn(
'bg-background text-muted-foreground px-2',
separatorClassName,
)}
>
{separator ?? 'Ou continuar com email'}
</span>
</div>