Implement logout and stateless token authentication.