Handling DRISC Disabled

Session Control should be enabled in the dashboard for the integration to work successfully. If Session Control is disabled in the dashboard, then while you try to create a new session using Initiate Session API, you will get the following response:

{
    "status": "disabled",
    "message": "Session tracking disabled."
}

Hence, If it's a deliberate choice of keeping Session Control disabled, then we recommend the client application to proceed with the content stream in the same way as if the session was granted. This can be achieved by updating the code with the following logic:

// ... create session API call

const data = await res.json();

if (res.status === 200) {
  if (data?.status === "disabled") {
    // start content stream as if new session was created
  }
}