How do I make an app public with optional login option?

Look this acction button: Show Sign In - Glide Library. To use this you have to make your app Public but first you need to put the users sheet in order to make this action worked well. I mean to add your users sheet here:

And in this post you have the visibilities to make some parts visible and some others not: Sign in action