Hey! Apologies if this has been answered, I've search the threads and can't find it. For months I've been trying to get the session cookie to update when making an API call to a protected route. I typically use tRPC but not opposed to not using it anyway. I don't really have an implementation to showcase, hopefully that doesn't matter too much. I'm trying to get my session cookie to update when my DB session is updated but it seems this can only be done with a client side event, something like use of the
useSession
useSession
hook. I'm almost certain there's a failure / lack of understanding on my part, surely there's a way to update the cookie from a protected API call. I would imagine a 401 capture in tanstack-query?