supertokens-node icon indicating copy to clipboard operation
supertokens-node copied to clipboard

Add h3 framework

Open ColinEspinas opened this issue 2 years ago • 0 comments

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.json file has been updated (if needed)
    • Along with the associated array in lib/ts/version.ts
  • [ ] frontendDriverInterfaceSupported.json file has been updated (if needed)
  • [ ] Changes to the version if needed
    • In package.json
    • In package-lock.json
    • In lib/ts/version.ts
  • [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 format vX.Y.Z, and then find the latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.
  • [x] If have added a new web framework, update the add-ts-no-check.js file 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.

ColinEspinas avatar Jan 16 '23 19:01 ColinEspinas