CSP02 / ChatterBoxAPI

API for ChatterBox app
MIT License
1 stars 0 forks source link

Authorization header #3

Closed CSP02 closed 2 months ago

CSP02 commented 4 months ago

API isn't checking if the request has an authorization header. instead it is directly trying to get the token from the header. Gonna check if there is authorization header present in the request and then proceed to grab the token from it.

CSP02 commented 2 months ago

Added this in latest commit along with authorization middleware for protected routes.