hi, cool course, I’m at video 28 now
‘ POST http://localhost:5000/api/orders 401 (Unauthorized) ‘
is what i get when i click Place Order
screenshot
thank you in advance
A Raja Posted new comment November 5, 2022


NEVERMIND THIS!!!
i fixed it
if anyone wants to know my dumb mistake: i was returning jwt.toString({}) instead of jwt.sign({}) in the backend/utils.js

Hi
I checked the utils.js in the backend I got everything right by somehow when I try to place the order by clicking the place order button still get “Invalid Token” message. any suggestion?
“invalid token”