Commit Graph
16 Commits
Author SHA1 Message Date
Jade Ellis 6412a650a5 fix: Overwrite previous access token on non-retry refreshes
Previously, set_token skipped saving the replaced access token whenever
a previous token entry already existed. If a client refreshed again with
its current refresh token before making a valid API request (such as
after going idle until expiry), a dropped response would leave the
server holding an older access token and cause a hard logout.

Let callers explicitly specify whether to clear, replace, or preserve
the previous access token.
2026-11-27 18:41:45 +00:00
Jade Ellis 25464134d8 fix: Remove previous tokens from database
Prevent some panics, accidental soft-logouts instead of hard ones, and
prevents stale tokens revoking sessions.
2026-11-27 18:41:45 +00:00
Ginger f579859f22 fix: Make OAuth access token refreshing idempotent 2026-11-27 18:41:44 +00:00
Erwan Leboucher 8c720e5427 fix: Store to-device messages before syncs can read their count 2026-11-05 15:17:36 +00:00
Jade Ellis 24b1e2ebe8 refactor(service): Use SyncRwLock and SyncMutex for in-memory services
Convert in-memory data structures in appservice, rooms::typing, and sync
wakers to use SyncRwLock and SyncMutex. Drop appservice locks before
making outbound network requests in room alias queries and federation
invites.
2026-10-28 21:48:22 +00:00
Ginger 9fbabe2210 chore: Reformat with latest nightly 2026-09-01 12:55:05 -04:00
timedout 6919f9681e fix: Remove OTKs and fallback keys when deleting a device 2026-08-29 14:51:19 +01:00
Ginger eadcea8034 chore: Clippy fixes 2026-08-25 12:37:13 -04:00
Ginger 9a3496ae70 feat: Add admin command to issue access tokens 2026-07-27 14:21:38 +00:00
timedout 8b3be67860 feat: Increase access token length
Reviewed-By: ginger <ginger@gingershaped.computer>
2026-07-19 15:06:23 +01:00
Erwan Leboucher e2eb980b5e fix(sync): Stop waking sync loops when removing to-device events 2026-07-16 22:15:27 +02:00
Ginger 1f5e178c3f fix: Properly handle appservice device creation 2026-07-13 08:50:48 -04:00
Ginger 3467dffd94 fix: Adjust sync watcher logic to be more explicit 2026-07-05 00:42:44 +00:00
Ginger 69163b5391 refactor: Split remote and deactivated users into their own columns 2026-07-02 16:24:07 -04:00
Ginger df3f646c92 feat: Implement oauth auth code and refresh token flows 2026-06-29 09:35:48 -04:00
timedout 967e2cc54f refactor: Split the users service into several modules
Also resolvers several lints, including needless async on create_user
2026-06-27 18:37:33 +01:00