Checking if a session is active without extending it

I’m looking for a way to identify that the current user session in okta is expired, either from the browser or from our nodejs MS.
I tried using /api/v1/sessions/me but each call extends the session expiration time.
I also saw that there is another API : /api/v1/sessions/{session_id} which shouldn’t extend it, however it returns 404 and is considered deprecated AFAIK.
I also tried looking for an event hook that triggers an event immediattely when the session expires, but wasn’t able to find any.
How can I get this information?

Hi,

Is your question similar to this post? How to get current session info?