Using Annoto Widget API
kWidget.addReadyCallback(function (playerId) {
player.kBind('annotoPluginReady', function (annotoApi) {
// Make use of the Annoto API
});
});var userJwtToken = '....';
player.kBind('annotoPluginReady', function (annotoApi) {
// Make use of the Annoto API
// If we already have the userJwtToken use it,
// alternatively the annotoAPI can be saved in a variable
// and used asynchronously.
annotoApi.auth(userJwtToken).catch(function(err) {
console.error('Annoto SSO auth error: ', err);
});
});Last updated