Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update google api client to v25.x, enable code challenge/verifier #29

Merged
merged 10 commits into from
Jan 28, 2018
Merged

Update google api client to v25.x, enable code challenge/verifier #29

merged 10 commits into from
Jan 28, 2018

Conversation

sqrrrl
Copy link
Member

@sqrrrl sqrrrl commented Jan 27, 2018

Copy link
Contributor

@grant grant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the code challenge. A few nits.

let opts = {
access_type: 'offline',
scope: [
'https://www.googleapis.com/auth/script.deployments',
'https://www.googleapis.com/auth/script.projects',
],
}
code_challenge_method: 'S256',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

index.js Outdated
})
})
.then(token => DOTFILE.RC.write(token))
authCode.then(code => oauth2Client.getToken({ code: code, codeVerifier: codes.codeVerifier }))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Destructure when possible.
  • Line too long
authCode.then(code => oauth2Client.getToken({
	code,
	codeVerifier: codes.codeVerifier
}))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

index.js Outdated
@@ -442,7 +439,7 @@ program
if (error) {
logError(error, ERROR.CREATE);
} else {
let scriptId = res.scriptId;
let scriptId = res.data.scriptId;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please destructure data here and elsewhere in the function callback above.

- script.projects.create({ title, parentId }, {}, (error, res) => {
+ script.projects.create({ title, parentId }, {}, (error, {data}) => {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@sqrrrl
Copy link
Member Author

sqrrrl commented Jan 28, 2018

Updated

@grant grant merged commit 96eec29 into google:master Jan 28, 2018
@grant
Copy link
Contributor

grant commented Jan 28, 2018

Thanks! Will push to npm next week.

sqrrrl pushed a commit that referenced this pull request May 11, 2021
* Change CLASP acronym description emphasis from italics to bold in README (#826)

* Updating documentation solving #819 (#820)

Co-authored-by: Yash Totale <30784592+YashTotale@users.noreply.github.com>
Co-authored-by: Mattias Ekstrand <mattias.ekstrand@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants