I have a website created in .NET where users are required to register/login to access their data. I have a SQL Serber database in place and the registration/login module is completely functional. What is the best way to implement this in an iOS app?
I'm thinking of using a web service to call the web method for authentication. But then every time I want to retrieve data, I will have to pass the user login and password in the request. I'm not sure if this is the most efficient way to implement this.
I would not pass the user login and password every time. Have the user login initially and then create an authentication token, store it on your server, and pass it back to the client and store it in the keychain. Then, you can just pass in the token each time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With