AnthonyStembreit / character_media_app

Full-Stack Social Media Application designed to allow Users to create Characters and send Messages as those Characters in order to create role-playing scenarios for DnD, fan-fiction, other LARPing games, and more. *This application is currently in development and is not fully functional
https://character-media-app.herokuapp.com/
0 stars 0 forks source link

Deployed Authentication #10

Closed AnthonyStembreit closed 2 years ago

AnthonyStembreit commented 2 years ago

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.

AnthonyStembreit commented 2 years ago

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

AnthonyStembreit commented 2 years ago

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

AnthonyStembreit commented 2 years ago

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