Added JWT token generation and validation. Created a middleware that checks all the requests to the backend for a valid JWT. If the JWT is valid it allows it to go to the specified handler if not it returns 401 to the request. Also, added tests for token validation and generation.
Added JWT token generation and validation. Created a middleware that checks all the requests to the backend for a valid JWT. If the JWT is valid it allows it to go to the specified handler if not it returns 401 to the request. Also, added tests for token validation and generation.