Overview
Request authToken
In the HALOSDK config, make sure you have set the ClientID and ClientSecret.
import { config } from 'halo-sdk-js';
config.setup({
credentials: {
clientId: 'YOUR_HALO_KEY',
clientSecret: 'YOUR_HALO_SECRET'
}
});
Now we are ready to request the authToken.
import { auth } from 'halo-sdk-js';
const authToken = await auth.getToken();
Once the authToken is set, you are ready to use any halo module.
Note: The authToken is required to use any halo module.