Pending Tasks ({pendingTodos.length})
{pendingTodos.length === 0 ? (No pending tasks. Great job!
) : (Completed Tasks ({completedTodos.length})
{completedTodos.length === 0 ? (No completed tasks yet.
) : (
Sign in/up page redirects to Cognito Managed Login.
After login, you can add, delete, and manage your todo items. The translate button triggers an async job and pushes a real-time notification to refresh the page.
{todo.description}
Created: {new Date(todo.createdAt).toLocaleDateString()}
No pending tasks. Great job!
) : (No completed tasks yet.
) : (Sign in to manage your tasks
Please sign in with your Cognito account to continue
{/* Use instead of to trigger a full-page navigation. The sign-in route returns a 302 redirect to Cognito, which would cause a CORS error if fetched via client-side navigation. */} {/* eslint-disable-next-line @next/next/no-html-link-for-pages */} Sign in with Cognito