How long it takes for "the redeem code" on TestFlight expired?

Regularly I invite several users to external testing and they receive an email with redeem code but when they enter the redeem code, an error message pop out show: "redeem code is expired", It is just a short time after the user is notified.

Then my question is very simple but I don't find the answer: How long it takes for "the redeem code" on TestFlight expired?

How long it takes for "the redeem code" on TestFlight expired?
 
 
Q