Current screnario: I have dot net core web api. I have angular web app with jwt token based authentication system.
What I want to develop: A native android app.
Why I want to use angular app's jwt based authentication system?
-
- I created angular web app using angular material. So it closely follows material design guidelines and hence it also resembles same user interface as native android app. So no design conflicts in terms of user interface.
-
- Since no design conflicts in terms of ui and since I am using jwt based token authentication why should I write separate authentication code for native android app?
My expected plan: I will use angular web app's jwt token based authentication system as it is and then somehow will store retrived token in android app for the future use.
I am not interested in designing completely hybrid app. I want to stick with native android app development but I want to reuse code of authentication of angular web app to save my time in developing authentication system again.
What is possibility of whole scenario? Is this valid plan?