← Security Settings

Trusted Devices

{#if message}
{message.text}
{/if}

Trusted devices can skip two-factor authentication when logging in. Trust is granted for 30 days and automatically extends when you use the device.

{#if loading}
Loading...
{:else if devices.length === 0}

No trusted devices yet.

When you log in with two-factor authentication enabled, you can choose to trust the device for 30 days.

{:else}
{#each devices as device}
{#if editingDeviceId === device.id}
{:else}

{device.friendlyName || parseUserAgent(device.userAgent)}

{/if}
{#if device.userAgent && !device.friendlyName}

Browser: {device.userAgent}

{:else if device.userAgent}

Browser: {parseUserAgent(device.userAgent)}

{/if}

Last seen: {formatDate(device.lastSeenAt)}

{#if device.trustedAt}

Trusted since: {formatDate(device.trustedAt)}

{/if} {#if device.trustedUntil} {@const daysRemaining = getDaysRemaining(device.trustedUntil)}

Trust expires: {#if daysRemaining <= 0} Expired {:else if daysRemaining === 1} Tomorrow {:else} In {daysRemaining} days {/if}

{/if}
{/each}
{/if}