How do you repair bathroom door knob?
Sorry to say but if someone asks such questions it’s better to hire someone. I can recommend this agency https://www.goglassnj.com/. Who knows maybe you’ll want to renovate the whole bathroom after your fixing attempts.
First, you have to determine what type of knob it is. It maybe possible that it is cheaper and easier to replace it with a new one. You can buy a bedroom/bathroom knob for about $5. If you have an older door with the old latch style knob and lock, there is a brass plate that covers the section of door to be prepared for the new knob. I know I am not very descriptive with my answer, sorry. If you bring this question to a hardware store-they will show you these parts.