Skip to content

Optimize client-side @commercetools/sdk-auth #1653

Description

@maslowivan

Description

A lot of useless code coming with this library:

  1. Buffer polyfill
  2. Lodash (defaultsDeep)

Expected Behavior

It works without these libraries or load them only on demand.

Current Behavior

It works with these libraries and is impossible even to replace them if you use just simple import SdkAuth, { TokenProvider } from '@commercetools/sdk-auth'; because it uses the UMD version.

Possible Solution

#1649
#1650
#1651

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions