In solving finite square well problem, we solve the TISE inside and outside the well, and we match the wave function at the boundary, by the continuity of wave function.

Now this bugs me, since the wavefunction is only assume to be square-integrable, why we can use the continuity of wavefunction?

Edit: There is no problem for this bound state solution to hold, but will we miss other non-continuous solutions?