Iβm creating an online chat and testing my api on postman with registration and login everything went smoothly but when it comes to using my token received at the login it gives me an error and returns the html code
Hey @malikaametova
Welcome to the Postman Community!
Are you able to show the code for that route and how that/those endpoints are expecting the token?
Typically, a Bearer token format would be Bearer 12345
but it looks like you have yours wrapped in $()
, is that expected?
The route is returning a 200 OK
without returning a 401 Unauthorized
or 403 Forbidden
.
Without seeing how thatβs been implemented, it would be difficult to know what should be returned.
Thank you for your answer, im sending to u two screens
first one is script js
second one is server js
Itβs difficult to follow with those screenshots.
Both of those images are showing the localhost:3000/profile
route and your route in Postman is localhost:3001/users
.