Skip to content

Commit

Permalink
chore: update setup package
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Mar 5, 2024
1 parent 64c5498 commit 4d920af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/setup/scripts/utils/application.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getIntegrationToken } from '@commercelayer/js-auth'
import { core } from '@commercelayer/js-auth'
import CommerceLayer from '@commercelayer/sdk'
import { execSync } from 'child_process'

Expand Down Expand Up @@ -34,8 +34,8 @@ export const createCommerceLayerClient = async (application: Application) => {
throw new Error('You should switch to an Integration type')
}

const integrationToken = await getIntegrationToken({
endpoint: application.endpoint,
const integrationToken = await core.authentication('client_credentials', {
slug: application.slug,
scope: 'market:all',
clientId: application.clientId,
clientSecret: application.clientSecret,
Expand Down

0 comments on commit 4d920af

Please sign in to comment.