Javascript SDK
The Bloq Javascript SDK enables you to work with Bloq services easily by simplifying authentication.
Last updated
Was this helpful?
The Bloq Javascript SDK enables you to work with Bloq services easily by simplifying authentication.
Last updated
Was this helpful?
The Javascript SDK has the following system requirements to install the library:
or
To install the Bloq Javascript SDK, use either:
npm install --save @bloq/cloud-sdk
OR
yarn add @bloq/cloud-sdk
The auth API helps to simplify the authentication process.
accessToken()
This method returns a promise that resolves in a new created access token using the provided client ID and secret.
The Access Token
is required to interact with Bloq services. It usually travels in an Authorization header value.
Code sample