Repository navigation
Conversation
… in the frontend - US-07: login form with labelled fields that works from the keyboard; the button is disabled while the request runs, and a failed login shows one generic message. Neither the password nor the session is kept in localStorage or in the URL. - US-08: AuthProvider restores the user from /api/auth/me after a reload, apiFetch sends every request through one client and returns to the login screen on 401, and the "Log out" button calls logout and clears the local state. React Router separates the public pages (/ and /login) from the protected route; hiding a page is not an access check, the server still checks every request. - The KT1 coursework panel from main stays on the public start page. Co-authored-by: anja-sreckovic <anja.sreckovic24@gmail.com> Co-authored-by: Danko Marković <dankomarkovic20042@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Component and requirement IDs
Changes
Size: 18 files, +427 / −18 without
package-lock.json.LoginFormandlogin/page.tsx. Fields have labels and the form works from the keyboard. The button is disabled while the request runs, so a double click does not send two requests, and a failed login shows one generic message. The password and the session are never stored inlocalStorageor in the URL.AuthProviderrestores the user from/api/auth/meafter a reload.apiFetchsends every request through one client and returns to the login screen on401, and the "Log out" button calls logout and clears the local state.react-router-dom) separates the public pages (/,/login) from the protected route (/access-demo). Hiding a page is not an access check; the server checks every request.main(CourseworkKt1) stays on the public start page.CreateAccountForm(IDN-01) is now on the protected page.Verification
npm ciandnpm run build: OK.Architecture and data flow
The frontend authentication boundary is described in
docs/ARCHITECTURE.md(part 5).Security checks and negative tests
The frontend is not a security boundary: all checks stay on the server (part 3). No token or password is kept in browser storage.
Dependencies
Stack
mainReplaces #55.
🤖 Generated with Claude Code