riaj03
01-17-2024Data Storage
Access url parameter from sisense script
Hi, we are embedding sisense report from our react app by iframe.
```
<iframe src={url} style={{ width: '100%', height: '100vh' }}></iframe>
```
Its working perfectly, but we need to send extra parameter that can be accessed by sisense script
```
<iframe src={`${url}?custom_auth_token=xyz`} style={{ width: '100%', height: '100vh' }}></iframe>
```
Then we need to access this token here
/*
Welcome to your Dashboard's Script.
To learn how you can access the Widget and Dashboard objects, see the online documentation at https://sisense.dev/guides/js/extensions
*/
const authToken = {way to access token}