L
L
LVitA2018-03-22 00:22:40
Android
LVitA, 2018-03-22 00:22:40

How are sessions saved in an Android app?

Good day!
At work, it became necessary to create an application for android, which will receive data from the server.
The server has a user authorization. I would like to understand how authorization is implemented in the android application. When authorizing after entering the data, it is necessary to write the login and password to the application database, and when next. launching the application to check this data and enter without authorization, or am I not understanding correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Vitaliev, 2018-03-22
@LVitA

I've had this on several projects:
The token can be sent, for example, in the header of each request, here you already need to do as the server expects.
At startup, you can check for the presence of a token. The server may return an authorization error on any request, for example, if the token does not match or is out of date

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question