# Two factor auth consistently returns invalid authentication code

**URL:** <https://meta.discourse.org/t/two-factor-auth-consistently-returns-invalid-authentication-code/84979>\
**Category:** Product Support\
**Created:** [10.Апрель.2018 13:53:00 UTC](https://meta.discourse.org/t/two-factor-auth-consistently-returns-invalid-authentication-code/84979 "2018-04-10T13:53:00Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)\
**Post date:** [15.Май.2018 23:18:22 UTC](https://meta.discourse.org/t/two-factor-auth-consistently-returns-invalid-authentication-code/84979/8 "2018-05-15T23:18:22Z")

</div>

Sure thing - I’ve added a 30 second grace window that should alleviate this.  
[https://github.com/discourse/discourse/commit/74aecdfd9d93b8e2df4719c4140209dd38bb4ae0](https://github.com/discourse/discourse/commit/74aecdfd9d93b8e2df4719c4140209dd38bb4ae0)

---

_[View the full topic](https://meta.discourse.org/t/two-factor-auth-consistently-returns-invalid-authentication-code/84979)._
