The data is innaccessible, I get a “Please verify that your admin backend is correctly configured and running.” error.
Everything works fine locally in a development environment.
I even created a new environment that I launched locally using ngrok, and it works fine also.
But in my production and staging environments, I get the error.
The error happens when a call is made to this endpoint. forest/authentication/callback?code=. It returns a 401 with the message “Unauthorized”.
I am having this exact same issue after upgrading to v7.
I also get a CORS error in addition to the 401 if I set my APPLICATION_URL to “https://app.forestadmin.com” but do not get one if I remove this ENV var. It is unclear from the documentation which one is correct for the express middleware.
I was finally able to get mine working by setting my APPLICATION_URL to the host my express middleware is running on and using that for the CLIENT_ID generation CURL command.
My APPLICATION_URL is already configured properly. Maybe the FOREST_CLIENT_ID is wrong but I don’t think so, and I would expect a better error message if that’s the case.
My project is “Inato Marketplace”. I reverted to v6 though because we couldn’t afford to have forest admin not working for extended period of times