Skip to content

Added rigorous session staleness checks#23

Merged
confestim merged 4 commits intomainfrom
submit-fix
Dec 31, 2025
Merged

Added rigorous session staleness checks#23
confestim merged 4 commits intomainfrom
submit-fix

Conversation

@confestim
Copy link
Member

@confestim confestim commented Dec 31, 2025

Fix for #22.

In conventional use (i.e. keeping one Themis instance alive), the library will now throw a SessionRefreshed after attempting to refresh cookies.

In usage in which a new Themis instance is created provided with stale/malformed cookies (such as temmies-cli, temmies will prompt the user for re-authentication and continue without throwing.

New exception: SessionExpired when re-authentication is unsuccessful.

@confestim confestim merged commit 6a76f7d into main Dec 31, 2025
0 of 4 checks passed
@confestim confestim linked an issue Dec 31, 2025 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Submission is broken

1 participant