HttpApiEventHandlerMap
HttpApiEventHandlerMap =
object
Defined in: src/http-api/interface.ts:149
Properties
Section titled “Properties”no_consent
Section titled “no_consent”no_consent: (
message,consentUri) =>void
Defined in: src/http-api/interface.ts:173
Fires when the JS SDK receives a M_CONSENT_NOT_GIVEN error in response to a HTTP request.
Parameters
Section titled “Parameters”message
Section titled “message”string
consentUri
Section titled “consentUri”string
Returns
Section titled “Returns”void
Example
Section titled “Example”digitalWorldClient.on("no_consent", function(message, contentUri) { console.info(message + ' Go to ' + contentUri);});Session.logged_out
Section titled “Session.logged_out”Session.logged_out: (
err) =>void
Defined in: src/http-api/interface.ts:162
Fires whenever the login session the JS SDK is using is no longer valid and the user must log in again. NB. This only fires when action is required from the user, not when then login session can be renewed by using a refresh token.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Example
Section titled “Example”digitalWorldClient.on("Session.logged_out", function(errorObj){ // show the login screen});