S
S
StynuBlizz2017-02-18 22:58:47
Android
StynuBlizz, 2017-02-18 22:58:47

How can I make it possible to log into my account on different devices?

I do this
• Log in the user
• I give him a token and save it in SharedPreferences
• When I start the program in the oncreate method, I check for the presence of a token in the SP, if it exists, then the profile window is launched, if not, then the login window
So this is how I need to do so that I can log in with different devices under one account (because if I go in doing everything according to this scheme, the token for the previous account will cease to be valid)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2017-02-19
@StynuBlizz

The token is stored somewhere on the server. Issue the same one for one account.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question