Tim Crooker

Results 11 comments of Tim Crooker

if you are using redux/toolkit and are getting this error or losing typing on your selectors then use the following configuration: store.ts ```typescript const rootReducer = combineReducers({ user: userReducer, })...

> RUN microdnf update && microdnf -y install wget this is the solution and should be added to the Repo :)

@adrien2p There is not a req.user by default yes but that is what the authenticate middleware does is attaches the user onto the request object. I tested this and it...

@adrien2p everything is running local

@adrien2p yes. If it was not then I would be unable to log in.

Cookies provided from the network tab headers: lng=en; ajs_user_id=usr_01J279R1YBK0AE2G4HYNWYVVV5; ajs_anonymous_id=7f3288f3-671e-41bd-8b08-a3d18b865648; connect.sid=s%3AW73EcOcNNezelIypTmmvW7Owc9ZoXf6e.OOfG6VZ92CAn8%2F2G7jUAgCZafCuQklmRqwj0MmteXxM Cookies recieved in my logger middleware before authentication call on server: cookies { lng: 'en', ajs_user_id: 'usr_01J279R1YBK0AE2G4HYNWYVVV5', ajs_anonymous_id: '7f3288f3-671e-41bd-8b08-a3d18b865648',...

Weirdly it seems that for all GET calls everything works as expected but for all POST calls where i have the authentication middleware registered it fails and looks like this...

After even further investigation seems that in the UI the GET call for products works and logs the cookies but cookies are undefined for the POST call to create a...

@adrien2p Anything on this? This is acting as a bit of a road block for me at the moment. Seems only POST calls have what looks like CORS issues when...