I am trying out Retool so I am under the free plan.
When I run this React code it shows the Retool login page and on entering the credentials it gives 401 (Unauthorized) error.
I am not using public url and have created the url from share -> viewer-> "copy embed url".
Why is it not working?
import React from 'react';
import Retool from "react-retool";
const sampleData = { name: 'Sample data' }
const url = 'your_app_url'
const App = () => {
return
<>
<Retool
url={url}
data={sampleData}
onData={(data) => mockFunction(data)}
/>
<>
}