I am developing login api for my android app and website. But I am not sure if both api should be same or different. For website, after successful login, the page should redirect to another page. If the redirection is from server side, then I cannot use it for android app.
I am using Spring framework on server side.
Can anyone suggest, what should be the best approach and how other website and their mobile apps work?