How to log out of Rocket Chat while using iframe auth?


I am currently using iframe auth to log users into Rocket Chat. Once they log out of my system that allowed them to log into Rocket Chat, how can I log them out? Rocket.Chat isn’t calling the iframe auth each time it is refreshed. It also seems that each user’s token changes between calling the API to log them in and the time they log out. Maybe during:


Any ideas on how to get the right token and user ID to log a user out through the API or kill the Rocket Chat session?