i built java application on desktop that allows sharing video to youtube to specific google acount.I used the suggested code from example for uploading a video from:https://developers.google.com/youtube/v3/code_samples/java#upload_a_video
with the json token of the user.But when i'm trying to upload it opens a web page of google and askes me to log-in and approve uploading videos with my user.
Is there a way to skip this level and do it from the java code?I don't want to make the user log-in in a web page to his google acount and only use the GUI i made with java.