The Convex Auth documentation advises regarding the auth sessions:
Customizing the authSessions table
We don't recommend customizing the schema of this table. Use the session ID in fields of your other tables.
That makes sense, and implies the creation of a table like user_sessions that could be used to track a user's session-specific state (for instance, a list of open files) . However, it's unclear when I can access the session ID to set up a record in a parallel record associated with the session. I could create a mutation to hydrate a user_session but this would need to be executed as part of my client workflow, which feels hacky.
How can I populate a user_sessions table with records associated with the userId and sessionId in response to session creation?