efficient-indigoE
Refine3y ago
19 replies
efficient-indigo

auth-provider

Given that my current setup is tentative, how can I configure my auth-provider to make an axios.post request to my backend for login at https://localhost:5002/login? Currently, my dataProvider is set to two resources like this:

  dataProvider={{
                default: dataProvider("http://localhost:5001/api"),
                auth: dataProvider("http://localhost:5001"),
              }}

What's the best way to access axios.post('/login') from the auth-provider page?
Was this page helpful?