adding oauth workaround for native phonegap apps