Skip to content

POST /auth/link returns 401 credentials_rejected for at least one library (Mid-Continent Public Library, websiteId 339) despite valid credentials #1

Description

@mrmichael1389

Running libby auth (node bin/libby.mjs auth --insecure-tls, with LIBBY_CARD/LIBBY_PIN/LIBBY_LIBRARY=mcpl/LIBBY_WEBSITE=339 set) consistently fails:

Minting primary chip...
Sentry error: POST /auth/link/339 -> 401 (credentials_rejected)

The credentials are confirmed valid — verified by successfully re-authenticating with the exact same card number and PIN via the official Libby app's own "re-verify card" feature, immediately before and after this test.

--insecure-tls is set and the request reaches the server fine (a real 401 with a body, not a connection error), so this isn't the known cert-mismatch issue.

Environment: Node v24.14.1, Windows, commit abea983 (2026-07-11), package v0.4.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions