Email activation expiration

Hello. I need to add an expiration date for the activation email that comes after registration. But I did not find a config with which I could do this.
I thought this can be done using the token that is in the activation link. Unfortunately, Open edX does not use a token, but UUID4.

I will be grateful for any help.

Some links to relevant code, for anyone else taking a look:

One thought is that you could add code to the activation flow that compares the current timestamp to the time the account was created. That would probably be a pretty clean patch.