Log all users out of all locations after 24 hours

There are few ways to accomplish what you want. I won’t give you any use-ready solution but just an idea.

First idea
You could set up cron job to replace authentication keys in wp-config.php, you can get them over here https://api.wordpress.org/secret-key/1.1/salt/
This way you will force all of the users to log in again.

Second idea
Create a new function to add some user date meta on successful login. On every page request, hook a new function to check if the meta value is greater than 24 hours, if it is, then logout specific user.