Always remember to log out when you're finished playing to protect your account when using Chess.com on a public or shared device.
Web
Mobile
Tap on More at the bottom right corner of your screen and select Settings.
Choose Log Out at the bottom of the list: