I am developing a mobile application with NativeScript & Vue (Ts) and I am questioning myself!
I have to develop the login page & the login process for the mobile app and I really don't know which choice is the better. I need to communicate between My App and My Website which have the exact same purpose. Plus I expect my user to keep logged after first login on the app.
- I started to think to give access to the data on my website by developing a REST API (API Platform + Symfony + JWT Token).
- Now I think of using OAuth2 for the exchange (get token, get refreshtoken etc...).
- Now I wonder should I just send an HTTPS POST Request and generate tokens by myself?
Has anyone done this before?
Have you any suggestions?
Also which process is the better in my case: Implicit Grant or Password Grant?
Thanks!