Skip to content

Commit

Permalink
Merge pull request #4 from ildecimo/develop
Browse files Browse the repository at this point in the history
remove logs after fix env variable issue
  • Loading branch information
maxdyy committed Aug 9, 2023
2 parents a0d5d90 + d86140d commit 2f9c305
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
- name: Lint
run: SKIP_ENV_VALIDATION=true npm run lint

- name: Lint
- name: Build
run: SKIP_ENV_VALIDATION=true npm run build
14 changes: 0 additions & 14 deletions src/app/api/app/auth/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ export async function GET(req: NextRequest) {
return new NextResponse('Invalid query parameters', { status: 400 });
}

console.log({
client_id: env.CLIENT_ID,
client_secret: env.CLIENT_SECRET,
code: parsedParams.data.code,
context: parsedParams.data.context,
scope: parsedParams.data.scope,
grant_type: 'authorization_code',
redirect_uri: env.AUTH_CALLBACK,
});

const oauthResponse = await fetch(`${BIGCOMMERCE_LOGIN_URL}/oauth2/token`, {
method: 'POST',
headers: {
Expand All @@ -64,10 +54,6 @@ export async function GET(req: NextRequest) {
await oauthResponse.json()
);

console.log('------------------------------------');
console.log(parsedOAuthResponse);
console.log('------------------------------------');

if (!parsedOAuthResponse.success) {
return new NextResponse('Invalid access token response', { status: 500 });
}
Expand Down

0 comments on commit 2f9c305

Please sign in to comment.