Skip to content

Conversation

@CatNamedJ
Copy link

No description provided.

@codesandbox
Copy link

codesandbox bot commented Feb 23, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 23, 2024
state: encodedState,
response_type: "code",
owner: "user",
// scope: "",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// scope: "",

Comment on lines 34 to 35
response_type: "code",
owner: "user",
Copy link
Collaborator

Choose a reason for hiding this comment

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

move constant parameters into config provider.callbackUrlParams

const encodedCredentials = Buffer.from(`${this.config.credentials.id}:${this.config.credentials.secret}`).toString("base64")
const tokenResponse = await exchangeCodeForToken(this.httpService, this.config, query.code, {
headers: {
Authorization: `Basic ${encodedCredentials}`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need to have extra headers

Copy link
Author

Choose a reason for hiding this comment

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

The Notion API requires extra headers.

@faze059 faze059 marked this pull request as draft April 12, 2024 20:00
@faze059 faze059 marked this pull request as ready for review July 15, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants