A
A
Alexander Osherov2020-05-24 06:58:44
Android
Alexander Osherov, 2020-05-24 06:58:44

How should backend server and android client communicate?

When registering a user, the android client receives information from this client's account and idtoken, should this token be sent with each client request to the server, or only once at the beginning?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kocherman, 2020-05-24
@kocherman

You need to authorize once, then a token (or cookie) is issued for a certain limited time, which can be automatically extended without re-authorization.
But, if you make persistent cookies, then it is necessary in the application to allow the user to control their authorizations and reject left devices / browsers / half clients if the user observes unhealthy activity ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question