diff --git a/.changeset/social-lizards-jog.md b/.changeset/social-lizards-jog.md new file mode 100644 index 000000000..0992eeebd --- /dev/null +++ b/.changeset/social-lizards-jog.md @@ -0,0 +1,5 @@ +--- +'@asgardeo/react': patch +--- + +Add missing challenge token to the passkey registration diff --git a/packages/react/src/components/presentation/auth/SignUp/v2/BaseSignUp.tsx b/packages/react/src/components/presentation/auth/SignUp/v2/BaseSignUp.tsx index 37d604860..0409b5b12 100644 --- a/packages/react/src/components/presentation/auth/SignUp/v2/BaseSignUp.tsx +++ b/packages/react/src/components/presentation/auth/SignUp/v2/BaseSignUp.tsx @@ -797,6 +797,7 @@ const BaseSignUpContent: FC = ({ executionId: passkeyState.executionId as string, flowType: (currentFlow as any)?.flowType || 'REGISTRATION', inputs, + ...(challengeTokenRef.current ? {challengeToken: challengeTokenRef.current} : {}), } as any; const nextResponse: any = await onSubmit(payload);