Hi everyone,
We have setup retool in a way where 2 of our panels are on it. Now the way we have setup authentication is that - 1 panel uses an admin resource which has the authentication check using the status code which works perfectly.
Panel 2 also uses a token from this admin resource (we store it as a variable and then use it) but has a different base URL, so the above check is not possible since we don't use the same resource for Panel 2's queries.
Now I need a way to get the authentication check on panel 2 without having to add a specific query in every single app which will ensure my endpoint authentication check runs.
We tried doing this by adding a query in a module which is used in all apps in Panel 2, the query is run and returns an error as expected, but it does not trigger the login flow.
Please help, sorry in advance if I wasn't able to explain the requirement properly!