Skip to content

* fix: reject invalid post-login tokens - #19

Open
baocang wants to merge 1 commit into
easysoft:mainfrom
baocang:fix/http-200-login-page
Open

baocang wants to merge 1 commit into
easysoft:mainfrom
baocang:fix/http-200-login-page

Conversation

@baocang

@baocang baocang commented Sep 4, 2026

Copy link
Copy Markdown

Summary

  • propagate E1004 when post-login token verification fails
  • keep user and server metadata enrichment best-effort for non-authentication failures
  • cover ZenTao HTTP 200 login-page responses and the existing best-effort behavior with regression tests

ZenTao can return its login page with HTTP 200 for a token that is not authenticated. verifyToken() already maps the missing users payload to E1004; this change prevents login() from swallowing that authentication failure.

Verification

  • bun run typecheck
  • bun test (186 tests)
  • bun run build
  • git diff --check

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