How do I trigger create a record when a user is automatically logged out of the app?


I'm looking for a way to create a new record whenever a user is logged out via the auto logout feature that the app now has functionality for.

Any advice or tips would be greatly appreciated. Thanks.