stevenarella icon indicating copy to clipboard operation
stevenarella copied to clipboard

Can't log in on invalid token (ForbiddenOperationException: Invalid token)

Open skillman623 opened this issue 4 years ago • 2 comments

After changing from offline to online mode (invalidating the token), the client refuses to login. Invalid token Discarding the token when you receive the invalid token (or maybe a prompt to do so?) should fix this. This may also be good UI option for offline mode #152 #290 by splitting login button into two boxes: discard token and offline mode.

skillman623 avatar Jul 04 '20 16:07 skillman623

I've noticed this too. Workaround is to remove the auth_token from conf.cfg. I think a good fix would be to automatically refresh the token upon ForbiddenOperationException: Invalid token (unclear why it doesn't do this already, maybe a bug/regression from other changes).

iceiix avatar Jul 24 '20 23:07 iceiix

Related (but not the same): https://github.com/iceiix/stevenarella/issues/164 -s/--server argument skips auth token refresh, can cause 'protocol error: Failed to auth with server' if expires

iceiix avatar Jul 25 '20 00:07 iceiix