Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSA: Dealing with Invalid Token #227

Open
antifob opened this issue Jun 10, 2023 · 2 comments
Open

PSA: Dealing with Invalid Token #227

antifob opened this issue Jun 10, 2023 · 2 comments

Comments

@antifob
Copy link

antifob commented Jun 10, 2023

I've had the EteSync client fail to sync contacts and calendars for a few weeks with the "Authentication failed" message. When trying to access the "dashboard" (account -> settings -> account dashboard), the app would simply popup with "Invalid token".

This error has been encountered by others in the past years, causing data loss:
#189
#186
#119

Here says to logout, but there's no "logout" function. Searching for code with logout functionality points to 5857ed5 which is part of the deleteAccount method.

Deleting an account would delete all unsynchronized data on the device.

Here's a workaround: changing the encryption password will force the app to re-acquire a token.
I didn't check why the old password (token?) was accepted while doing the change, but hey..

Regards

@tasn
Copy link
Member

tasn commented Jun 10, 2023

Thanks for the writeup!

@daftaupe
Copy link

Thanks @antifob , that saved my day. I wrote up a page on the server wiki as I discovered my wife's phone was having issues through the logs, so it might help some admins.

https://github.com/etesync/server/wiki/Invalid-token-renewal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants