How to implement session timeout in reactive applications?

To implement a mechanism where the application logs out a user if he/she is idle in critical applications (Reactive).

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.