Skip to content
Snippets Groups Projects
Unverified Commit 1c8a1cd5 authored by ElementRobot's avatar ElementRobot Committed by GitHub
Browse files

Fix token refresh behaviour for non-expired tokens (#4825) (#4827)

The condition was inverted here, but the tests were passing because
they didn't add enough expiry time for the token expiry to be over
the threshold.

Fix the condition and tests, add another test and generally add a
bunch of comments so hopefully this is less confusing for the next
person.

Fixes https://github.com/element-hq/element-web/issues/29858



(cherry picked from commit fea619d3)

Co-authored-by: default avatarDavid Baker <dbkr@users.noreply.github.com>
parent 663136a9
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment