AnthonyStembreit/character_media_app

Deployed Authentication

Closed this issue · 3 comments

The app is now deployed on Heroku however the axois is not being proxyed to the server --I was able to resolve this with local host using axios.defaults.proxy = "http://localhost:3001"

Will need to do some research to see what I need to set the axios.defaults.proxy for production mode.

Additionally authenticated routes, sign-up, login, etc auth functionality is currently broken on deployed. Hopefully the only cause being the above issue.

Correction --the axios is proxying correctly, the issue appears to be with the passport and persistence of login. Specifically the route /api/user_data
The server responds with a status of 200 but with no data

routes currently working /api/signup /api/login

routes currently Not Working /api/user_data /api/logout

The broken /api/user_data has also broken the authenticated routes, and persistent login

Authenticated routes, persistent login, and logout now working correctly on deployed.
Odd error message still present in console upon first load of /api/user_data server responded with status of 404 however once logged in upon reload returns expected user object