I have a web app based on symfony 3, which provides an REST Api to load all "basic data".
I use Guard as authentification throw my login form, all session data are stored throw PDOSessionHandler in the database(Password is hashed with bcrypt).
Now i am creating a native app for iOS.
Most of the data are loaded throw the REST Api, but not the login data.
So how to solve login in native app(iOS)?
When user enters username+password in native login form...
Shall i hash the password with bcrypt and send it with the username to the web app to authentificate the user? If authentification was successful, send success-message back and store the credentials in NSUserDefaults so i can request them on every request to the web app?