Is there any way to get a callback of some sort (r...
# ory-selfhosting
s
Is there any way to get a callback of some sort (rest or otherwise) when a session is created, or, ideally, also when an existing session is modified (a new device appears or the session is extended). I would like like this info so I can show the active session list on an administrative UI page (redacting the actual session ID of course).
To answer myself, The Origin url is not reliable in the flow info, the best I could do was to look for a session created by the same user and the AuthenticatedAt timestamp on the session is within a second of the updatedAt timestamp on the flow. It would be great to be able to extract the sessionID (or some hashed version of it if that is a security risk) in the login hook in kratos.