# Invalid TOTP code

**URL:** <https://vaultwarden.discourse.group/t/invalid-totp-code/2777>\
**Category:** Help\
**Created:** [July 12, 2023, 7:57am UTC](https://vaultwarden.discourse.group/t/invalid-totp-code/2777 "2023-07-12T07:57:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SillyStrategy](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@SillyStrategy](https://vaultwarden.discourse.group/u/SillyStrategy)\
**Post date:** [July 12, 2023, 7:57am UTC](https://vaultwarden.discourse.group/t/invalid-totp-code/2777/1 "2023-07-12T07:57:35Z")

</div>

I can’t seem to able to use 2fa

This is my admin page

 ![Screenshot 2023-07-12 095440](https://global.discourse-cdn.com/free1/uploads/vaultwarden/original/2X/f/fc81644a3b8719a672c6792c1342b69c456c63c2.png)

- I’ve mounted ‘/etc/timezone’ and ‘/etc/localtime’ as read-only volumes
- I’ve re-run the docker image
- I’ve rebooted the host machine
- I’ve manually synced NTP both in the host and in the PC I’m using to connect to the browser extension
- I’m using UNRAID

Please help!

---

<div class="post-metadata">

**Author:** ![cksapp](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cksapp](https://vaultwarden.discourse.group/u/cksapp)\
**Post date:** [July 12, 2023, 12:56pm UTC](https://vaultwarden.discourse.group/t/invalid-totp-code/2777/2 "2023-07-12T12:56:13Z")

</div>

I believe the TOTP code generation is done client side, so you may wish to check your local machine’s time to verify.

---

<div class="post-metadata">

**Author:** ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)\
**Post date:** [July 13, 2023, 8:38am UTC](https://vaultwarden.discourse.group/t/invalid-totp-code/2777/3 "2023-07-13T08:38:38Z")

</div>

@cksapp is right, the clients generate the token.  
Looking at the screenshot, at least the system where you created the screenshot on is working ok.  
If this happens on an other device i would suggest to check the date/time settings there.
