When I am creating an admin user, there is this registration link, which has a registrationToken. How can I make it expired after 3 days? I tried this, but it works just on regular token and not on registration token :
{
"jwt": {
"expiresIn": "3d"
}
}
So if I log in and receive a token this expiresIn is working perfectly, but it has no effect on this registrationToken, am I missing something?
Is there any other solution to disable this registration link after 3 days?
P.S: I thought about writing a Cron job, but in the admin user table, there is no created_at field, I know that I can save this created_at somewhere else in the database, but it is not a very clean way to do it.