Monorepo for Tangled
Something went wrong. Try again.
appview/oauth: invalidate sessions if inactive for too long master
if sessions are inactive for too long, tokens will not be refreshed, and calling authorized xrpc methods will error out with invalid_grant. this changeset does two things: - tracks the last time a session was active using a new redis pair: `oauth:session_meta:<did>:<session>`, this is updated every time `SaveSession` is called - checks for session inactivity every time `GetSession` is called, and deletes the session if so this way, `GetSession` will never return a session with expired tokens. Signed-off-by: oppiliappan <me@oppi.li>
Author oppiliappan Committer Tangled Date (Oct 29, 2025, 12:33 PM UTC) Commit ee08cd02 ee08cd020cb2b1193f5620f997f45fdfca1f6937 Parent 8f17b7bd 8f17b7bdc982b353270699ff27e0f080b4330c52 Change ID rnnvqlrq rnnvqlrqspsvqqpnvpkppqyowszxqptt