I have a website which uses nodejs and passportjs for authentication. I now need to use this system to login with my android application. I am unsure as to the correct way to proceed. Do I simply use the website and load it in a web view itself? Is this the correct way to do ? Otherwise I would have to probably send the username and password for the first time and establish a token. Are there any libraries with android support which do this ? Could someone please help me out?
Follow the following steps and hopefully you will get your app to do what you want:
Once they are logged in, you can redirect them to their profile or protected resources as you wish.
I hope this helps.