In some cases to enhance security of your application you will want to allow users to see all the devices/browsers they are logged in with. You would also provided a button to sign out of a device/browser.
Here's how you can do it!
Episode source code: https://github.com/corsego/165-security-manage-active-sessions/commit/028064768ecb033dc19d7f3179bb52d963a734f4
Based on this blogpost: https://blog.corsego.com/secutiry-manage-active-sessions