update sample app for auto refresh oauth