Both OTP and Magic link will expire after 15 minutes. You need to trigger a new mail for generating a new OTP and Magic link.