[]
The Js Viewer allows to specify a security token during creation. However, sometimes you may need to change a security token at run time. To do so, you should use the onRequest handler as demonstrated in the example below:
const viewer = GrapeCity.ActiveReports.JSViewer.create({
element: '#root',
reportService: {
onRequest: (init) => alert(init.credentials),
},
});