SDK
The Bizzkit CMS SDK can be used to handle authentication when creating your own plugins for the Bizzkit CMS. This guide will help you get started with the SDK for Bizzkit CMS.
Installation
Add a .npmrc
file to your project in the same directory as your package.json
:
Then, run vsts-npm-auth
to retrieve an Azure Artifacts token, which will be added to your user-level .npmrc
file:
Note: You don't need to run this every time. If you encounter an npm 401 Unauthorized
error, it indicates you need to run it again.
Finally, install the package:
Usage
Signing in with Bizzkit products from within a Builder.io plugin
This will provide you with a bearer token that can be used to call other Bizzkit product APIs, such as DAM, ECS, and PIM. The function also handles caching the bearer token, so the user is not required to sign in each time.