supertokens-node
supertokens-node copied to clipboard
Add h3 framework
Summary of change
This PR aims to add compatibility to h3 (and by extension Nitro) to Supertokens back-end.
Test Plan
So for now I am trying to get it to work with a simple nitro server with an empty "/" route by creating a plugin to init supertokens and adding the required middlewares to h3. This is still WIP and creating a real testing suite like it is done for other frameworks should be the way to go.
Documentation changes
Will probably need a new tab on backend frameworks examples.
Checklist for important updates
- [ ] Changelog has been updated
- [ ]
coreDriverInterfaceSupported.jsonfile has been updated (if needed)- Along with the associated array in
lib/ts/version.ts
- Along with the associated array in
- [ ]
frontendDriverInterfaceSupported.jsonfile has been updated (if needed) - [ ] Changes to the version if needed
- In
package.json - In
package-lock.json - In
lib/ts/version.ts
- In
- [x] Had run
npm run build-pretty - [x] Had installed and ran the pre-commit hook
- [x] Issue this PR against the latest non released version branch.
- To know which one it is, run find the latest released tag (
git tag) in the formatvX.Y.Z, and then find the latest branch (git branch --all) whoseX.Yis greater than the latest released tag. - If no such branch exists, then create one from the latest released branch.
- To know which one it is, run find the latest released tag (
- [x] If have added a new web framework, update the
add-ts-no-check.jsfile to include that - [x] If added a new recipe / api interface, then make sure that the implementation of it uses NON arrow functions only (like
someFunc: function () {..}). - [x] If added a new recipe, then make sure to expose it inside the recipe folder present in the root of this repo. We also need to expose its types.