- ✅ Receives a POST request from route /api/login
- ✅ Validates required fields email and password
- ✅ Validates if email field has a valid format
- ✅ Finds the user matching the provided email and password
- ✅ Generates an access token for the user ID
- ✅ Updates user data with the generated access token
- ✅ Returns 200 with the generated access token
- ✅ Returns 404 error code if the route is not available
- ✅ Returns 400 error code if required fields email or password were not provided
- ✅ Returns 400 error code if provided email is invalid
- ✅ Returns 401 if user credentials are invalid
- ✅ Returns 500 error code if something goes wrong while generating the access token
- ✅ Returns 500 error code if something goes wrong while refreshing the user's access token