title: Access token is always expired in 1 hour with YouTube API V3 for Java
body: <p>I am able to use the sample Java program to upload video to YouTube using API V3.</p>
  
  <p>However, the access token generated by oAuth2 will always be expired after one hour. How to refresh the access token with the Java library so that it is never expired?</p>
  
  <p><a href="https://developers.google.com/youtube/v3/code_samples/java#upload_a_video" rel="nofollow noreferrer">Java Version of YouTube Upload Sample Program</a></p>