{#if result} { const { recovery_codes, ...completed } = result; await onComplete(completed); result = null; }} /> {:else}

{challenge.next_step === 'enroll' ? $i18n.t('Set up your authenticator') : challenge.next_step === 'recover' ? $i18n.t('Recover your authenticator') : $i18n.t('Verify your sign-in')}

{challenge.next_step === 'enroll' ? $i18n.t('Scan the QR code, then enter the six-digit code from your authenticator app.') : challenge.next_step === 'recover' ? $i18n.t('Enter the recovery token from your operator.') : recovery ? $i18n.t('Enter one of your saved recovery codes.') : $i18n.t('Enter the six-digit code from your authenticator app.')}

{#if challenge.next_step === 'enroll'} {#if setup} {$i18n.t('Authenticator
{$i18n.t('Enter the key manually')} {setup.manual_key}
{:else if busy}

{$i18n.t('Preparing your authenticator…')}

{:else}{/if} {/if} {#if error}{/if}
{#if challenge.next_step === 'verify'}{/if}
{/if}