We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
missing adding the agent to the request options for the auth request
async authorize(query) { if (!query) throw new Error('The URL query paramaters are required.'); const payload = { client_id: this.config.clientId, client_secret: this.config.secret, redirect_uri: this.config.callback, grant_type: 'authorization_code', code: query.code, scope: query.scope, context: query.context }; const request = new Request('login.bigcommerce.com', { failOnLimitReached: this.config.failOnLimitReached }); return await request.run('post', '/oauth2/token', payload); }
should be
async authorize(query) { if (!query) throw new Error('The URL query paramaters are required.'); const payload = { client_id: this.config.clientId, client_secret: this.config.secret, redirect_uri: this.config.callback, grant_type: 'authorization_code', code: query.code, scope: query.scope, context: query.context }; const request = new Request('login.bigcommerce.com', { failOnLimitReached: this.config.failOnLimitReached, agent: this.config.agent }); return await request.run('post', '/oauth2/token', payload); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
missing adding the agent to the request options for the auth request
should be
The text was updated successfully, but these errors were encountered: