commit ensure authentication token