Fixing bididrectional dependency

I’ve been able to follow this course (a bit outdated) until now, but in the authentication and authorization section, I can’t follow how o when the function defined in htppServices “setJwt” set the header needs to authorization, is called at beginning of the auth module? but when you get logged or register a new user is it when you need to pass the jwt in the header???

I’m not sure I understand your question but in general the web application will have received an access token (the jwt) after the user has authenticated, and will send that access token along to the server (in the Authorization header) when making an API request.