Skip to content

feat: JWT from Cookie header (issue #7) - #33

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue-7-jwt-cookie
Apr 26, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue-7-jwt-cookie

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • jwt_cookie: str | None on all route decorators: if set, and Authorization: Bearer is missing or empty, the token is taken from the Cookie header (case-sensitive name, ;-separated pairs).
  • Authorization: Bearer still takes precedence when present.
  • token::extract_cookie_value + unit tests; ASGI tests with oxyjwt.
  • docs/jwt.md updated.

Closes #7

- Route options: jwt_cookie; extract_cookie_value in token; Bearer first
- state RouteEntry, add_route, dispatch, App decorators
- Unit tests in token; ASGI tests with oxyjwt; docs/jwt.md

Closes #7

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

123

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit cf83216 into dev Apr 26, 2026
16 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue-7-jwt-cookie branch April 26, 2026 19:41
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