# Is there a limit to user\_auth\_token?

**URL:** https://meta.discourse.org/t/is-there-a-limit-to-user-auth-token/99533
**Category:** Support
**Created:** [10월 15, 2018, 9:28오전 UTC](https://meta.discourse.org/t/is-there-a-limit-to-user-auth-token/99533 "2018-10-15T09:28:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [10월 15, 2018, 9:28오전 UTC](https://meta.discourse.org/t/is-there-a-limit-to-user-auth-token/99533/1 "2018-10-15T09:28:55Z")

</div>

Currently, I see users with hundreds of user\_auth\_token rows. Is there no limit to this? soon they will reach to thousands and the database would be too big.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [10월 16, 2018, 2:33오전 UTC](https://meta.discourse.org/t/is-there-a-limit-to-user-auth-token/99533/2 "2018-10-16T02:33:38Z")

</div>

> [@hosna](#):
>
> I see users with hundreds of user\_auth\_token rows

This should not be the case, we only expect one per device, we do clean this up regularly (any ancient ones get deleted)

---

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [10월 16, 2018, 7:40오전 UTC](https://meta.discourse.org/t/is-there-a-limit-to-user-auth-token/99533/3 "2018-10-16T07:40:07Z")

</div>

> [@sam](#):
>
> (any ancient ones get deleted)

They should be how much old to be candidate for deletion? Cause I see some rows from 2017.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [10월 17, 2018, 12:17오전 UTC](https://meta.discourse.org/t/is-there-a-limit-to-user-auth-token/99533/4 "2018-10-17T00:17:29Z")

</div>

We have:

`max api keys per user`: set to 10

`expire user api keys days` set to 180

Both in site settings, are you sure you are not talking about user api key log table?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [7월 9, 2021, 12:07오전 UTC](https://meta.discourse.org/t/is-there-a-limit-to-user-auth-token/99533/5 "2021-07-09T00:07:35Z")

</div>


