I've implemented a REST API Webservice and my iOS app creates requests to this webservice like a registration of an user. The REST webservice responses the user id if successful. A typical login is not a part of a REST webservice. Now I want to save this user id on the iPhone for this app, so I don't have to login everytime on starting the app. But how is it possible. How should I do this with swift? And what is the typical way to do this in an iPhone app?
Thanks!