---
title: "Two-factor code animated icon"
description: "Two-factor code animated icon (Account & privacy). Two cells receive a code: dots bloom in sequence in Light; in Strong each cell takes a key press and its dot pops in with one bounded settle."
canonical: https://generativeicons.com/icons/two-factor-code/
---

# Two-factor code animated icon

Two cells receive a code: dots bloom in sequence in Light; in Strong each cell takes a key press and its dot pops in with one bounded settle.

- Id: `two-factor-code`
- Category: Account & privacy
- Search terms: 2fa, mfa, otp, totp, one-time code, one-time password, verification code, security code, auth code, sms code, authenticator, two-step verification, 2-step verification
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/two-factor-code.lottie (dotLottie, 12234 bytes, sha256 f40ddfc143e0cd36e7462460aed42cff931abc286a64e3f9e2caa1994b1c9b88)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add two-factor-code
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/two-factor-code.mjs';

export function TwoFactorCodeIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/two-factor-code.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/two-factor-code/ · https://generativeicons.com/api/icons/two-factor-code
