Telega
Telega copied to clipboard
Session file invalid
When my session file fails, how can I judge it and retrieve authentication?
The default session store overwrites the session file using a backup. So the session should not be corrupted. It can be staled however. One example is low SeqNo. The client attempts to repeat a request a few times incrementing SeqNo. Usually it is enough. Serialization logic can be found here. It can be changed in the future.