We're so excited you're interested in helping with SuperTokens! We are happy to help you get started, even if you don't have any previous open-source experience 😊
- Take a look at How to Contribute to an Open Source Project on GitHub
- Go through the SuperTokens Code of Conduct
- Check our Github Issues to see if someone has already answered your question.
- Join our community on Discord and feel free to ask us your questions
- OS: Linux or macOS
- Nodejs & npm
- IDE: VSCode(recommended) or equivalent IDE
git clone https://github.com/supertokens/supertokens-web-js.git
cd supertokens-web-js
- Install the project dependencies
npm i -d
- Add git pre-commit hooks
npm run set-up-hooks
- Open the
supertokens-web-js
project in your IDE. - You can start modifying the code.
- After modification, you need to build the project:
npm run build-pretty
- Make sure the linter passes:
npm run lint
- Navigate to your fork of supertokens-web-js on https://github.com
- Set the
AUTH0_EMAIL
andAUTH0_PASSWORD
secrets in your repository (Your forked repository -> Settings -> Secrets -> Actions). You can refer to this file for the values - Navigate to the "Actions" tab in the repository
- Select the "Run tests" Action in the sidebar
- Use the "Run workflow" button to configure the correct branch to use when running the tests. For supertokens-auth-react you can use "supertokens" as the owner name and use the latest version branch. For example if the latest version for supertokens-auth-react is
0.22.0
, you should use the branch0.22
. You can use the default values for the rest. (Make sure to select the correct branch for your fork of supertokens-web-js in the dropdown) - Run the workflow
- Before submitting a pull request make sure all tests have passed
- Reference the relevant issue or pull request and give a clear description of changes/features added when submitting a pull request
- Make sure the PR title follows conventional commits specification
SuperTokens is made possible by a passionate team and a strong community of developers. If you have any questions or would like to get more involved in the SuperTokens community you can check out:
Additional resources you might find useful: