Skip to content

Commit

Permalink
fix: remove test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Sep 13, 2024
1 parent f50e16c commit 6c6604b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/commercelayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,11 @@ class CommerceLayerClient {

debug('new commercelayer instance %O', config)

console.log(config)
console.log('----------')
if ((!config.organization || !config.domain) && config.accessToken) {
const tokenData = extractTokenData(config.accessToken)
if (!config.organization && tokenData?.organization?.slug) config.organization = tokenData.organization.slug
if (!config.domain && tokenData?.iss) config.domain = String(tokenData.iss).replace('https://auth.', '')
}
console.log(config)

this.#adapter = new ResourceAdapter(config)
this.#slug = config.organization ?? ''
Expand Down

0 comments on commit 6c6604b

Please sign in to comment.