mirror of
https://github.com/bitbaum/causius.git
synced 2026-12-04 12:08:22 +01:00
* fix(auth): adopt shared account forms and recovery * fix(auth): use released all-method second-factor protection
23 lines
549 B
TypeScript
23 lines
549 B
TypeScript
"use client";
|
|
|
|
import type { ComponentProps } from "react";
|
|
import { AccountPanel as SharedAccountPanel } from "@bitbaum/accountkit/auth/react";
|
|
import { authClient } from "@/lib/auth-client";
|
|
import { AUTH_CLASSES, useAuthLabels } from "./shared";
|
|
|
|
type Props = Omit<
|
|
ComponentProps<typeof SharedAccountPanel>,
|
|
"client" | "labels" | "classes"
|
|
>;
|
|
|
|
export function AccountPanel(props: Props) {
|
|
return (
|
|
<SharedAccountPanel
|
|
{...props}
|
|
client={authClient}
|
|
classes={AUTH_CLASSES}
|
|
labels={useAuthLabels()}
|
|
/>
|
|
);
|
|
}
|