tringify({ pin }),
                        credentials: 'same-origin'
                    });

                    const data = await response.json();
                    if (data.success) {
                        pinError.textContent = '';
                        window.location.href = getRedirectUrl();
                    } else {
                        if (response.status === 429) {
                            pinError.textContent = data.error;
                            setPinInputsDisabled(true);
  