You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a middleware, which authenticates the requests with JWT token. Find all the requests that need to be protected, and use this middleware there. Currently, none of the requests is authenticated.
The text was updated successfully, but these errors were encountered:
Hey @shikhar13012001, the client can send the token in the headers. Headers of the request can be accessed through req.headers["FieldName"]. Let's say, you choose token as field name, then it can be accessed as req.headers['token'] inside your middleware.
Create a middleware, which authenticates the requests with JWT token. Find all the requests that need to be protected, and use this middleware there. Currently, none of the requests is authenticated.
The text was updated successfully, but these errors were encountered: