fix skip passwordless prompt, register with authrequest, passkey

This commit is contained in:
peintnermax
2024-03-25 15:18:51 +01:00
parent a9d0752b5f
commit 7dd709e3e7
13 changed files with 131 additions and 49 deletions

View File

@@ -23,9 +23,15 @@ type Inputs =
type Props = {
legal: LegalAndSupportSettings;
organization?: string;
authRequestId?: string;
};
export default function RegisterFormWithoutPassword({ legal }: Props) {
export default function RegisterFormWithoutPassword({
legal,
organization,
authRequestId,
}: Props) {
const { register, handleSubmit, formState } = useForm<Inputs>({
mode: "onBlur",
});
@@ -66,7 +72,8 @@ export default function RegisterFormWithoutPassword({ legal }: Props) {
},
body: JSON.stringify({
loginName: loginName,
// authRequestId, register does not need an oidc callback at the end
organization: organization,
authRequestId: authRequestId,
}),
});