Auth-via-cookies #7
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Bothim_TV/punktesystem!7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "auth-via-cookies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary by CodeRabbit
New Features
/auth-meendpoint to verify user authentication status and admin privileges.Chores
📝 Walkthrough
Walkthrough
This pull request migrates authentication from token-based (localStorage + Authorization headers) to cookie-based (HttpOnly cookies + automatic Axios transmission). Backend endpoints now set secure cookies instead of returning tokens, and frontend components removed explicit Authorization headers to rely on automatic cookie transmission via configured Axios withCredentials.
Changes
backend/package.json,backend/src/index.ts,docker-compose.yml@fastify/cookiedependency and registered Fastify cookie plugin with COOKIE_SECRET environment variable configuration.backend/src/routes/auth/PATCH.ts,backend/src/routes/passkeys/PATCH.tsbackend/src/routes/auth-me/GET.ts,backend/src/types/Route.tsfrontend/src/plugins/axios.ts,frontend/src/plugins/index.tsfrontend/src/layouts/default.vue,frontend/src/pages/index.vue,frontend/src/pages/login.vue,frontend/src/pages/checkin.vue,frontend/src/pages/spiel.vuefrontend/src/components/SchuelerSelect.vue,frontend/src/pages/verwaltung/mail.vue,frontend/src/pages/verwaltung/passkeys.vue,frontend/src/pages/verwaltung/schueler.vue,frontend/src/pages/verwaltung/sessions.vue,frontend/src/pages/verwaltung/statistik.vuefrontend/src/util/cookies.ts,.github/copilot-instructions.mdSequence Diagram
Estimated code review effort
🎯 4 (Complex) | ⏱️ ~45 minutes
Poem
Comment
@coderabbitai helpto get the list of available commands and usage tips.Review the following changes in direct dependencies. Learn more about Socket for GitHub.
Security
View full report
Publisher changed: npm
@fastify/cookieis now published by fdawgs instead of gurgundayNew Author: fdawgs
Previous Author: gurgunday
From: backend/package.json →
npm/@fastify/cookie@11.0.2ℹ Read more on: This package | This alert | What is new author?
View full report