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

feat: Changes for multitenancy dashboard

Open prateek3255 opened this issue 1 year ago • 0 comments

Summary of change

Add Multitenancy APIs dashboard APIs for: - Fetching a tenant's info - Deleting a tenant - Listing all tenants with their user counts - Creating or updating an existing tenant - Associating and disassociating a user from a tenant - Creating or updating third party config for a tenant - Deleting third party config for a tenant

Related issues

N/A

Test Plan

Tested the APIs via Postman:

Listing all tenants: image

Getting tenant Info: image

Deleting a tenant: image

Documentation changes

N/A

Checklist for important updates

  • [x] 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
  • [ ] If new thirdparty provider is added,
    • [ ] update switch statement in recipe/thirdparty/providers/configUtils.ts file, createProvider function.
    • [ ] add an icon on the user management dashboard.
  • [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.
  • [ ] 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 () {..}).
  • [ ] 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.

Remaining TODOs for this PR

N/A

prateek3255 avatar Jan 11 '24 13:01 prateek3255