Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Changed the port used when performing auth with YouTube to be random …
Browse files Browse the repository at this point in the history
…instead of fixed (issue #32)
  • Loading branch information
Stekeblad committed Aug 29, 2021
1 parent 998e7d8 commit be2e334
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public static Credential authUser() throws IOException {
HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, scope).setDataStoreFactory(fileFactory)
.build();

LocalServerReceiver localReceiver = new LocalServerReceiver.Builder().setPort(7835).build();
return new AuthorizationCodeInstalledApp(authFlow, localReceiver).authorize("user");
return new AuthorizationCodeInstalledApp(authFlow, new LocalServerReceiver()).authorize("user");
}

/**
Expand Down

0 comments on commit be2e334

Please sign in to comment.