update sample to use refresh token