js oauth issue; always avoid oauth prompt if not needed