On js format login request, an api key is also generated and on js format logout request, the api key is cleared out.