Fix to token authentication.