I've recently lost my job, and it's knocked my confidence a lot. A friend told me they believed in me, and that helped me feel better and made me smile.
I don't know how you feel as I've never personally experienced losing a job, but I emphasize with what you might be going through. I've had friends and family that have gone through it (or going through it now). You are not your job. You are sooo much more. Losing a job may suck, but you will recover and be better from it (even if it takes time).