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 timeSaveSessionis called - checks for session inactivity every time
GetSessionis 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