added a mechanism to generate auth token and store it.