Skip to content

feat: SuperTokens integration#1979

Open
jscyo wants to merge 3 commits into
honojs:mainfrom
jscyo:supertokens-intergration
Open

feat: SuperTokens integration#1979
jscyo wants to merge 3 commits into
honojs:mainfrom
jscyo:supertokens-intergration

Conversation

@jscyo

@jscyo jscyo commented Jun 16, 2026

Copy link
Copy Markdown

The author should do the following, if applicable

  • Add tests
  • Run tests
  • yarn changeset at the top of this repo and push the changeset
  • Follow the contribution guide

jscyo and others added 3 commits May 13, 2026 20:26
…ect runtime behaviour

- Move index.ts and index.test.ts into src/ to match tsconfig rootDir and build script
- Add vitest.config.ts so the package resolves its own test runner config rather than the monorepo root
- Fix exports condition order (types before import/require) to satisfy bundler requirements
- Replace Record<string,string> headers with the Web API Headers object expected by PreParsedRequest
- Import HTTPMethod from supertokens-node/types for correct method typing
- Add serializeCookie() to convert CookieInfo objects into Set-Cookie strings
- Fix applyCollectingResponse to iterate Headers.forEach with (value, key) signature
- Replace headers.size (not on Headers) with hasResponseUpdates() iterator check
- Add try/catch around stMiddleware() so thrown errors reach stErrorHandler
- Widen ContextVariableMap session to SessionContainer | undefined for optional-session flows
- Remove unused SuperTokensOptions interface and env import

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jscyo jscyo changed the title Supertokens intergration Supertokens integration Jun 16, 2026
@jscyo jscyo changed the title Supertokens integration feat: SuperTokens integration Jun 16, 2026
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