@ces-sdk/core
v0.2.0
Published
SDK base client and common tools
Downloads
92
Readme
Core
Core classes and utilities to be used by most SDK clients.
BaseClient
The BaseClient contains the basic axios interceptors that will handle adding the bearer token header as well as retries.
Credential Providers
The BaseClient needs to have a way to know what bearer token to attach to the Authorization headers for each request.
ClientCredentialProvider
Basic Client Credentials grant type provider that sends a client_id and client_secret to the token endpoint to retrieve a bearer token.
BrowserLocalStorageProvider
Basic provider that retrieves a previously saved access token in the browser's local storage. Use in conjunction with another library like nuxt-auth to manage retrieving the tokens.