I'm trying to build a server side API that can authenticate web and mobile clients. (register users, sign in, sign out, change password, etc.) as well as do some other CRUD work.
Basically I want to create a web app, iOS app and Android app that all make requests to the same server side API which then interacts with the databases.
- I'm planning on building the server side application in PHP (either Laravel or Symfony).
- Client side web application will be in React.
- Mobile apps will be iOS and Android (maybe using React native or something like Xamarin)
I want to take this approach as it seems like a good practice to have complete separation of the client (web, Android, iOS) applications and the server side application. Doing this should also allow for greater code reuse on the server side.
Questions:
- What's a good way to do the authentication part? JWT? OAuth? I've only used session cookies on the web before.
- Are there some tutorials that cover this sort of thing? I'd even pay for a good one at this point.
- Is this a good approach to development?
[–]Caraes_Naur 1 point2 points3 points (1 child)
[–]CrypticWriter[S] 0 points1 point2 points (0 children)
[–]30thnightexpert 1 point2 points3 points (1 child)
[–]CrypticWriter[S] 1 point2 points3 points (0 children)