<p>This is determined by the <a href="https://craftcms.com/docs/4.x/config/general.html#defaulttokenduration" rel="nofollow noreferrer"><code>defaultTokenDuration</code> general config setting</a> which is set to 1 day unless you change it in the <code>general.php</code> config file.</p>

CC BY-SA 4.0
2023-12-18T14:46:33.380Z
We typically change ours to 14 days, which is a far more reasonable window for people to log in for the first time.
Lindsey D
CC BY-SA 4.0
2023-12-18T09:22:07.413Z
2023-12-18T14:14:18.150Z
2023-12-18T14:14:18.150Z
Steve Rowling
<p>Does anyone know how much time a user has to use the activation link in the user activation mail?
Some clients report to us that that they see an error page after waiting a weekend to use the activation link.</p>

<users><emails><activation>
User activation mail not working after a while
# User activation mail not working after a while

(Asked by: username_0 on 2023-12-18)

Does anyone know how much time a user has to use the activation link in the user activation mail?
Some clients report to us that that they see an error page after waiting a weekend to use the activation link.

**Tags:** users, emails, activation


---

## 1 answers

### Answer by username_1 on 2023-12-18. Score: 2 | Accepted answer

This is determined by the [`defaultTokenDuration` general config setting](https://craftcms.com/docs/4.x/config/general.html#defaulttokenduration) which is set to 1 day unless you change it in the `general.php` config file.

> **Comments:**
> **username_2**: We typically change ours to 14 days, which is a far more reasonable window for people to log in for the first time.  

---

