Skip to content

#3 — Authentication #82

Description

@bobinush

Admins log in with a password. The backend sets a session cookie; all subsequent
API calls send that cookie. A 401 from any API call returns the user to the login screen.

Acceptance criteria:

  • Login modal is shown on first load (or when no valid session exists)
  • POST /api/auth/login with { password } is called on submit
  • Wrong password shows an inline error without navigating away
  • Correct password hides the modal and loads the app
  • All subsequent fetch calls include credentials: 'include'
  • A 401 response from any endpoint re-shows the login modal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions