how to make a link expire ?

hi team ,  i want to make a link expire . how i can achieve it ? in my application i used deeplink to generate the random URL link and send this link as a mail . when user perform there task through this link , i want this link get expired . How i can achieve it . Please explain in brief .    Thanks in advance !!
1 answers

You can use jwt module and create your own expiring tokens.

If you validate expire dates of the tokens on your endpoint, I think that will solve the problem.

You can check