أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
You can manage easily tokens by doing following steps:-
1) When Login, Assign a token to that user from server by sending this token with user details to the client app.
2) Save this token in the application preferences.
3) Use this token whenever calling a web services from the server.
4) Server will check whether this is a valid token, If not then ask application/client side that token is invalid and get new one.
5) Then to get new token, client app will get new token from the server either by calling a web services OR by seamless login.
This is all, how we can manage tokens...
Web Service using JSON, we had an application that runs in IOS, Android and Typical Web App that each of those platform communicate using web service where tokens via JSON data are pass from one to the other.