| Day | Task | Start Date | Completion Date | Reference Material |
|---|---|---|---|---|
| 2 | Connect frontend to Cognito auth endpoints. - Implement login, signup UI flows. | 17/11/2025 | 17/11/2025 | AWS Study Group |
| 3 | Implement secure token storage & token refresh mechanism. - Add interceptors in API client. | 18/11/2025 | 18/11/2025 | AWS Study Group |
| 4 | Integrate frontend with API Gateway authenticated routes. - Validate Lambda Authorizer flow. | 19/11/2025 | 19/11/2025 | AWS Study Group |
| 5 | Build a global error handling layer (frontend + backend). - Improve API response consistency. | 20/11/2025 | 20/11/2025 | AWS Study Group |
| 6 | Strengthen monitoring using CloudWatch Logs & Metrics. - Debug end-to-end flow. | 21/11/2025 | 21/11/2025 | AWS Study Group |
This week, I successfully connected the frontend application to Cognito, enabling user signup, login, and logout directly from the UI. I ensured token retrieval and user session management work properly.
I set up secure token storage using browser memory and added an automatic token refresh flow. I also implemented Axios/Fetch interceptors to attach access tokens on every request.
The frontend can now communicate with protected API Gateway routes using JWT tokens. This validates the entire authentication pipeline from UI → Client → Gateway → Lambda → DynamoDB.
I standardized error responses in Lambda, updated API Gateway mappings, and built a global error handler on the frontend to show meaningful messages. This reduces debugging time and improves UX.
I analyzed Lambda logs, identified slow operations, and created CloudWatch Metrics filters to monitor request failures and latency. This improved my debugging workflow significantly.
By the end of the week, I successfully executed end-to-end user actions:
UI → Authenticate → Call API → Lambda Logic → DynamoDB → Return response.
Everything worked seamlessly with proper security & error-handling in place.