1
0
mirror of https://github.com/etesync/server synced 2024-11-22 08:48:07 +00:00

Updated Invalid token renewal (markdown)

Pierre-Alain TORET 2024-02-25 17:14:37 +01:00
parent 55d6fa47cd
commit 8a378aab70

@ -3,13 +3,11 @@ An issue that might arise is the Android app losing the authentication Token for
Once facing this issue, you will have some items not synced with the server and if you delete the accoun to re-add it, you will lose them.
On a selfhosted EteSync server you will get lines such as the following :
INFO: ::1:28393 - "POST /api/v1/collection/list_multi/?stoken=Y2TMWsPY5RXf4tUBDmAIXQpCgf8h9scN HTTP/1.0" 401 Unauth
orized
INFO: ::1:51824 - "POST /api/v1/collection/list_multi/?stoken=Y2TMWsPY5RXf4tUBDmAIXQpCgf8h9scN HTTP/1.0" 401 Unauth
orized
INFO: ::1:42106 - "POST /api/v1/collection/list_multi/?stoken=Y2TMWsPY5RXf4tUBDmAIXQpCgf8h9scN HTTP/1.0" 401 Unauth
orized
One way to prevent this is to use the option in the Android app account's settings : Encryption password (change your encryption password), where you can reuse the same one as before). That gets you a new token and the items are not lost but will get synced with the server.
INFO: ::1:28393 - "POST /api/v1/collection/list_multi/?stoken=Y2TMWsPY5RXf4tUBDmAIXQpCgf8h9scN HTTP/1.0" 401 Unauthorized
INFO: ::1:51824 - "POST /api/v1/collection/list_multi/?stoken=Y2TMWsPY5RXf4tUBDmAIXQpCgf8h9scN HTTP/1.0" 401 Unauthorized
INFO: ::1:42106 - "POST /api/v1/collection/list_multi/?stoken=Y2TMWsPY5RXf4tUBDmAIXQpCgf8h9scN HTTP/1.0" 401 Unauthorized
One way to prevent this is to use the option in the Android app account's settings : `Encryption password (change your encryption password)`, where you can reuse the same one as before). That gets you a new token and the items are not lost but will get synced with the server.
Solution taken from https://github.com/etesync/android/issues/227