{ if (!v) handleClose(); }}> {createdToken ? 'Token created' : 'Generate API token'} {#if createdToken}
Copy this token now. It will not be shown again.
{:else}
{#if isLocalUser}
{/if}
{#if expirationOption === 'none'}No expiration {:else if expirationOption === '30d'}30 days {:else if expirationOption === '90d'}90 days {:else if expirationOption === '1y'}1 year {:else if expirationOption === 'custom'}Custom date {/if} No expiration 30 days 90 days 1 year Custom date {#if expirationOption === 'custom'} {/if}
{#if error} {error} {/if}
{/if}