OTP codes are valid for a short time only. Depending on the limitations set by the app or site, an OTP is usually valid for 30 seconds to 5 minutes.