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

Commit

Permalink
Use constants for clientid
Browse files Browse the repository at this point in the history
fix issue introduced in backport from msfjarvis branch;
refer to ClientId and ClientSecret constants instead of (absent)
parameters
  • Loading branch information
cg2v committed Jun 20, 2022
1 parent 56a9b01 commit 5bf9328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers_drive.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func getOauthClient(args cli.Arguments) (*http.Client, error) {
}

tokenPath := ConfigFilePath(configDir, TokenFilename)
return auth.NewFileSourceClient(clientId, clientSecret, tokenPath, auth.AuthCodeHTTP)
return auth.NewFileSourceClient(ClientId, ClientSecret, tokenPath, auth.AuthCodeHTTP)
}

func getConfigDir(args cli.Arguments) string {
Expand Down

0 comments on commit 5bf9328

Please sign in to comment.