When all else fails, sometimes the best thing to tell yourself after not getting a job offer is that the job just simply wasn't meant for you. If you don't believe this right away, chances are you will later on.
You will never be able to know what a potential employer is thinking. If you don't get offered the job, don't think of it as a loss or a missed opportunity. Think of it in positive terms. You got more interview experience, you met new people, and you're one step closer
to finding the right job for you. And remember, a "no" doesn't mean never. It simply means "not now."
The key to keeping your confidence up is believing the right job for you is out there. When you remind yourself of your end goal, it puts the job search process in perspective. You walk into every interview believing this job could be the one—but if it isn't, that's okay, too. You will try your
best, of course, but also accept that you can't control everything about the hiring process. It will take some of the pressure off.