added a method to authentication.cookie to allow for generating the auth token