Hi Sumeet,
If you are on SSL, basic authentication might be secure enough. Without SSL it's highly unsecured.
You can use any form af authentication you fancy. If you don't have good knowledge in this area I would advise to use a trusted 3rth party to handle this. It's very easy to mess this up.
There are a lot of solutions available for this. Google's firebase auth, google Oauth, auth0. Most social networks also provide an api to handle this.
If your application has it's own server, or not makes also a big difference.
here are some relevant links on auth:
Hope this helps you a bit,
Regards
Sander