Write file with the authToken to the path functionality added