Fix (registration flow): logout old before creating new client as required by initClient. (#2604)

This commit is contained in:
Timo
2024-09-02 21:42:50 +02:00
committed by GitHub
parent 5f8081bebb
commit 922fe5bafd
2 changed files with 6 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ export const RegisterPage: FC = () => {
const [error, setError] = useState<Error>();
const [password, setPassword] = useState("");
const [passwordConfirmation, setPasswordConfirmation] = useState("");
const { recaptchaKey, register } = useInteractiveRegistration();
const { recaptchaKey, register } = useInteractiveRegistration(client);
const { execute, reset, recaptchaId } = useRecaptcha(recaptchaKey);
const onSubmitRegisterForm = useCallback(