Skip to content

feat(auth): add auth HTTP endpoints, problem details and session middleware - #21

Merged
pitercoding merged 4 commits into
mainfrom
feat/auth-http
Nov 24, 2026
Merged

pitercoding merged 4 commits into
mainfrom
feat/auth-http

Conversation

@pitercoding

Copy link
Copy Markdown
Owner

Adds the HTTP layer of phase 1 authentication (not wired into main yet):

  • RFC 9457 problem details errors and strict JSON decoding (size limit,
    content type, no unknown fields, single value)
  • POST /api/v1/auth/register, /login and /logout, with a hardened
    session cookie (HttpOnly, Secure, SameSite=Lax)
  • RequireAuth middleware and GET /api/v1/me

Internal errors are logged, never returned to the client.

@pitercoding
pitercoding merged commit a531f80 into main Nov 24, 2026
4 checks passed
@pitercoding
pitercoding deleted the feat/auth-http branch November 24, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant