# TOTP became incorrect about a week ago for 2 factor authentification

**URL:** <https://onlykey.discourse.group/t/totp-became-incorrect-about-a-week-ago-for-2-factor-authentification/1155>\
**Category:** Uncategorized\
**Created:** [September 22, 2023, 6:49pm UTC](https://onlykey.discourse.group/t/totp-became-incorrect-about-a-week-ago-for-2-factor-authentification/1155 "2023-09-22T18:49:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ok007](https://avatars.discourse-cdn.com/v4/letter/o/6a8cbe/32.png) [@ok007](https://onlykey.discourse.group/u/ok007)\
**Post date:** [September 22, 2023, 6:49pm UTC](https://onlykey.discourse.group/t/totp-became-incorrect-about-a-week-ago-for-2-factor-authentification/1155/1 "2023-09-22T18:49:10Z")

</div>

After working correct for over a year in the last few days my TOTP is incorrect. Before this happened the TOTP worked for a few times without me using “onlykey-cli settime” and I’m still not getting the NOTSET message when using the onlykey without setting the time. But either way, with or without using the “onlykey-cli settime” I’m getting an incorrect 2nd factor TOTP. Is there a solution for this?

---

<div class="post-metadata">

**Author:** ![t11](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@t11](https://onlykey.discourse.group/u/t11)\
**Post date:** [September 25, 2023, 2:01pm UTC](https://onlykey.discourse.group/t/totp-became-incorrect-about-a-week-ago-for-2-factor-authentification/1155/2 "2023-09-25T14:01:25Z")

</div>

OnlyKey does require the correct time, this is set by the Onlykey app, the web app [https://apps.crp.to](https://apps.crp.to) or the CLI. If you want to test the output of OnlyKey compared to actual you can do that on the site here with a test value [https://totp.danhersam.com/](https://totp.danhersam.com/)

---

<div class="post-metadata">

**Author:** ![ok007](https://avatars.discourse-cdn.com/v4/letter/o/6a8cbe/32.png) [@ok007](https://onlykey.discourse.group/u/ok007)\
**Post date:** [September 25, 2023, 7:20pm UTC](https://onlykey.discourse.group/t/totp-became-incorrect-about-a-week-ago-for-2-factor-authentification/1155/3 "2023-09-25T19:20:32Z")

</div>

The problem was I was leaving the onlykey duo plugged in after shutting down the pc then restarting. I think it should work while doing this but the solution was to just unplug the onlykey and replug it in AFTER restarting the pc.

---

<div class="post-metadata">

**Author:** ![Mango\_Mungo](https://yyz2.discourse-cdn.com/free1/user_avatar/onlykey.discourse.group/mango_mungo/32/26_2.png) [@Mango\_Mungo](https://onlykey.discourse.group/u/Mango_Mungo)\
**Post date:** [September 25, 2023, 9:33pm UTC](https://onlykey.discourse.group/t/totp-became-incorrect-about-a-week-ago-for-2-factor-authentification/1155/4 "2023-09-25T21:33:06Z")

</div>

That shouldn’t really be a problem. I’ve always had my OnlyKeys plugged in for years. After a reboot I don’t even have to re-enter the pin. (Only after a cold start.)

---

<div class="post-metadata">

**Author:** ![ok007](https://avatars.discourse-cdn.com/v4/letter/o/6a8cbe/32.png) [@ok007](https://onlykey.discourse.group/u/ok007)\
**Post date:** [September 26, 2023, 12:15am UTC](https://onlykey.discourse.group/t/totp-became-incorrect-about-a-week-ago-for-2-factor-authentification/1155/5 "2023-09-26T00:15:44Z")

</div>

I’m on PopOS 22.04. What operating system are you using?

---

<div class="post-metadata">

**Author:** ![Mango\_Mungo](https://yyz2.discourse-cdn.com/free1/user_avatar/onlykey.discourse.group/mango_mungo/32/26_2.png) [@Mango\_Mungo](https://onlykey.discourse.group/u/Mango_Mungo)\
**Post date:** [September 26, 2023, 9:32pm UTC](https://onlykey.discourse.group/t/totp-became-incorrect-about-a-week-ago-for-2-factor-authentification/1155/6 "2023-09-26T21:32:26Z")

</div>

See my Profile Picture 🙂 Debian GNU/Linux  
Have you installed the [UDEV rules](https://docs.onlykey.io/linux.html)? Should be automatic since [OnlyKey v5.3.3 .deb](https://github.com/trustcrypto/OnlyKey-App/releases/tag/v5.3.3).

Sometimes time is out of sync when the laptop has been on for several days. Then press `Button 3` for longer than 5 seconds and reconnect (Enter PIN).  
EDIT:  
Is this possible on the DUO? I always use the original ones. The DUO is in the drawer as a backup. I actually only got it to support Tim’s Kickstarter campaign.

---

<div class="post-metadata">

**Author:** ![ok007](https://avatars.discourse-cdn.com/v4/letter/o/6a8cbe/32.png) [@ok007](https://onlykey.discourse.group/u/ok007)\
**Post date:** [September 27, 2023, 12:41am UTC](https://onlykey.discourse.group/t/totp-became-incorrect-about-a-week-ago-for-2-factor-authentification/1155/7 "2023-09-27T00:41:49Z")

</div>

It’s a new desktop pc I’m having the trouble with. I’ll check the UDEV rules when I’m at that location in a few days but I think I did install them. And I’m pretty sure I’m on Onlykey v5.3.3.deb. It does work fine except for the leaving plugged in when I shutdown.
