mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-28 03:17:32 +00:00
Concurrent token refreshes or API requests clearing the previous refresh token could overwrite userdeviceid_oauthsessioninfo with stale session state or leave orphaned entries in refreshtoken_refreshtokeninfo. Guard session mutations with a per-device MutexMap and re-read session info under the lock when clearing the previous refresh token.