You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working on a react project using a backend api running passport-steam. I'm running into the issue where none of my requests are actually comming back authorized. I'm wondering if you could help point ouf a problem in my code somewhere.
This is the code I'm using for the backend api. However in the frontend when trying to make the fallowing api request: https://pastebin.com/EjnvRpZQ
axios.get("http://localhost:4000/api/authed")
I get back the message: 'Unauthorized' that ensureAuthenticated is supposed to return if req.isAuthenticated() returns false. So right of the bat I know that the problem starts with isAuthenticated(), but I can't figure out what exactly I'm missing here in order to get authentication to work right for this
The text was updated successfully, but these errors were encountered:
I click login on the front end, it then goes to /api/login for the backend, which then takes me to steam, I then get redirected back to / on the front end. But not authed.
I'm currently working on a react project using a backend api running passport-steam. I'm running into the issue where none of my requests are actually comming back authorized. I'm wondering if you could help point ouf a problem in my code somewhere.
This is the code I'm using for the backend api. However in the frontend when trying to make the fallowing api request: https://pastebin.com/EjnvRpZQ
I get back the message: 'Unauthorized' that ensureAuthenticated is supposed to return if req.isAuthenticated() returns false. So right of the bat I know that the problem starts with isAuthenticated(), but I can't figure out what exactly I'm missing here in order to get authentication to work right for this
The text was updated successfully, but these errors were encountered: