Skip to content

fix(api): preserve signJWT issuer claim#124

Merged
markwylde merged 2 commits intomainfrom
codex/fix-signjwt-issuer
Mar 24, 2026
Merged

fix(api): preserve signJWT issuer claim#124
markwylde merged 2 commits intomainfrom
codex/fix-signjwt-issuer

Conversation

@markwylde
Copy link
Copy Markdown
Member

@markwylde markwylde commented Mar 24, 2026

Summary

  • signJWT now preserves a provided payload iss claim and only falls back to context.config.issuer when missing.
  • Added regression tests for both payload-issuer preservation and configured-issuer fallback.

Testing

  • npm run tidy (not available in this environment: biome is not installed)
  • npm run build (not available in this environment: tsc, vite, and jsdom are missing)

Preserve payload iss claim in signJWT when present and add regression tests.
@markwylde markwylde changed the title test(api): add signJWT issuer fallback coverage fix(api): preserve signJWT issuer claim Mar 24, 2026
Use generateEdDSAKeyPair in the issuer tests and mock KEK-backed private key retrieval so the test setup matches signJWT runtime behavior.
@markwylde markwylde merged commit a12d3cc into main Mar 24, 2026
17 checks passed
@markwylde markwylde deleted the codex/fix-signjwt-issuer branch March 24, 2026 22:47
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