I have a shed just like that that the door came loose. I used 18" Nylon Heavy-Duty Cable Ties, drilled matching holes in the side wall and the door and cinched the doors to the side. They are strong and do the job.
As an Amazon Associate, I earn a few pennies every time you buy
something using one of my affiliate links. Don't worry, though --- I
only recommend products I thoroughly stand behind!
Also, this site has Google ads on it. Third party vendors, including
Google, use cookies to serve ads based on a user's prior visits to a
website. Google's use of advertising cookies enables it and its
partners to serve ads to users based on their visit to various sites.
You can opt out of personalized advertising by visiting this site.