Skip to content

Commit a3fa8cd

Browse files
committed
reformats code
1 parent dad8f53 commit a3fa8cd

File tree

314 files changed

+4240
-2759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+4240
-2759
lines changed

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ labels: 'bug'
88

99
(A clear and concise description of what the bug is)
1010

11-
1211
## Useful informations
1312

1413
(Write what happened. Add screenshots, stacktraces, videos, anything that can help)

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ labels: 'enhancement'
1010

1111
## Implementation details
1212

13-
(Please outline any details about how this feature would e implemented. If you don't know, you can just skip this section.)
13+
(Please outline any details about how this feature would e implemented. If you don't know, you can just skip this
14+
section.)

.github/ISSUE_TEMPLATE/release.md

Lines changed: 105 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -6,112 +6,114 @@ labels:
66

77
# 📅 Checklist
88

9-
## 🔶 Staging
9+
## 🔶 Staging
1010

1111
### Dev Tag
12-
- [supertokens-core:X.Y](https://github.com/supertokens/supertokens-core/tree/X.Y)
13-
- [ ] core
12+
13+
- [supertokens-core:X.Y](https://github.com/supertokens/supertokens-core/tree/X.Y)
14+
- [ ] core
1415
- [ ] check CDI, plugin interface list
1516
- [ ] Add migration script for psql / mysql
16-
- [ ] Make sure no memory leak
17-
- [ ] plugin-interface
17+
- [ ] Make sure no memory leak
18+
- [ ] plugin-interface
19+
- [ ] check plugin interface list
20+
- [ ] mysql-plugin
21+
- [ ] check plugin interface list
22+
- [ ] Add migration script for mysql
23+
- [ ] postgresql-plugin
24+
- [ ] check plugin interface list
25+
- [ ] Add migration script for psql
26+
- [ ] mongodb-plugin
1827
- [ ] check plugin interface list
19-
- [ ] mysql-plugin
20-
- [ ] check plugin interface list
21-
- [ ] Add migration script for mysql
22-
- [ ] postgresql-plugin
23-
- [ ] check plugin interface list
24-
- [ ] Add migration script for psql
25-
- [ ] mongodb-plugin
26-
- [ ] check plugin interface list
27-
- [ ] [supertokens-node:X.Y](https://github.com/supertokens/supertokens-node/tree/X.Y)
28-
- [ ] check CDI, FDI list
29-
- [ ] [supertokens-golang:X.Y](https://github.com/supertokens/supertokens-golang/tree/X.Y)
30-
- [ ] check CDI, FDI list
31-
- [ ] [supertokens-python:X.Y](https://github.com/supertokens/supertokens-python/tree/X.Y)
32-
- [ ] check CDI, FDI list
33-
- [ ] [supertokens-website:X.Y](https://github.com/supertokens/supertokens-website/X.Y)
34-
- [ ] check FDI list
35-
- [ ] [supertokens-web-js:X.Y](https://github.com/supertokens/supertokens-web-js/X.Y)
36-
- [ ] check FDI list
37-
- [ ] check web-js interface version
38-
- [ ] Update dependency version of supertokens-website in package.json from npm registry
39-
- [ ] [supertokens-auth-react:X.Y](https://github.com/supertokens/supertokens-auth-react/tree/X.Y)
28+
- [ ] [supertokens-node:X.Y](https://github.com/supertokens/supertokens-node/tree/X.Y)
29+
- [ ] check CDI, FDI list
30+
- [ ] [supertokens-golang:X.Y](https://github.com/supertokens/supertokens-golang/tree/X.Y)
31+
- [ ] check CDI, FDI list
32+
- [ ] [supertokens-python:X.Y](https://github.com/supertokens/supertokens-python/tree/X.Y)
33+
- [ ] check CDI, FDI list
34+
- [ ] [supertokens-website:X.Y](https://github.com/supertokens/supertokens-website/X.Y)
35+
- [ ] check FDI list
36+
- [ ] [supertokens-web-js:X.Y](https://github.com/supertokens/supertokens-web-js/X.Y)
37+
- [ ] check FDI list
38+
- [ ] check web-js interface version
39+
- [ ] Update dependency version of supertokens-website in package.json from npm registry
40+
- [ ] [supertokens-auth-react:X.Y](https://github.com/supertokens/supertokens-auth-react/tree/X.Y)
4041
- [ ] check FDI list
4142
- [ ] check web-js interface version
4243
- [ ] Updated dependencies to use supertokens-web-js in package.json from npm registry
4344
- [ ] Various browsers - Safari, Firefox, Chrome, Edge
4445
- [ ] Mobile responsiveness
4546
- [ ] Make sure using with-typescript example that types are correct for every new configs exposed to users
4647
- [ ] Make sure frontend login UI shows even if backend is not working.
47-
- [ ] [supertokens-react-native:X.Y](https://github.com/supertokens/supertokens-react-native/X.Y)
48+
- [ ] [supertokens-react-native:X.Y](https://github.com/supertokens/supertokens-react-native/X.Y)
49+
- [ ] check FDI list
50+
- [ ] [supertokens-android:X.Y](https://github.com/supertokens/supertokens-android/X.Y)
4851
- [ ] check FDI list
49-
- [ ] [supertokens-android:X.Y](https://github.com/supertokens/supertokens-android/X.Y)
50-
- [ ] check FDI list
51-
- [ ] [supertokens-ios:X.Y](https://github.com/supertokens/supertokens-ios/X.Y)
52-
- [ ] check FDI list
53-
- [ ] [supertokens-flutter:X.Y](https://github.com/supertokens/supertokens-flutter/X.Y)
54-
- [ ] check FDI list
55-
- [ ] [supertokens-dashboard](https://github.com/supertokens/dashboard)
56-
- [ ] Tested all items mentioned in this? https://github.com/supertokens/dashboard/blob/master/.github/PULL_REQUEST_TEMPLATE.md
57-
- [ ] Test day with team. Get people in the team to read the docs and implement something with the new feature.
52+
- [ ] [supertokens-ios:X.Y](https://github.com/supertokens/supertokens-ios/X.Y)
53+
- [ ] check FDI list
54+
- [ ] [supertokens-flutter:X.Y](https://github.com/supertokens/supertokens-flutter/X.Y)
55+
- [ ] check FDI list
56+
- [ ] [supertokens-dashboard](https://github.com/supertokens/dashboard)
57+
- [ ] Tested all items mentioned in
58+
this? https://github.com/supertokens/dashboard/blob/master/.github/PULL_REQUEST_TEMPLATE.md
59+
- [ ] Test day with team. Get people in the team to read the docs and implement something with the new feature.
5860

5961
### Others
6062

6163
- [ ] Example apps in create-supertokens-app CLI
6264
- [ ] Create new example app in create-supertokens-app CLI?
63-
- [ ] Examples apps in supertokens-auth-react. Update try.supertokens and rerun the pr checklist
64-
- [ ] Examples apps in supertokens-web-js
65-
- [ ] Examples apps in supertokens-react-native
66-
- [ ] Examples apps in supertokens-golang
67-
- [ ] Examples apps in supertokens-python
68-
- [ ] Examples apps in supertokens-node. Update try.supertokens and rerun the pr checklist
69-
- [ ] Examples apps in android
70-
- [ ] Example apps in ios
71-
- [ ] Example apps in flutter
72-
- [ ] [next.js:canary](https://github.com/supertokens/next.js/tree/canary/examples/with-supertokens)
73-
- [ ] RedwoodJS and playground-auth
74-
- [ ] Run on netlify (and hence AWS lambda) to check if it works fine there
75-
- [ ] Test on vercel (with-emailpassword-vercel app)
76-
- [ ] SuperTokens Jackson SAML example update
77-
- [ ] Supabase docs
78-
- [ ] Capacitor template app: https://github.com/RobSchilderr/capacitor-supertokens-nextjs-turborepo
79-
- [ ] T4 App: https://github.com/timothymiller/t4-app
65+
- [ ] Examples apps in supertokens-auth-react. Update try.supertokens and rerun the pr checklist
66+
- [ ] Examples apps in supertokens-web-js
67+
- [ ] Examples apps in supertokens-react-native
68+
- [ ] Examples apps in supertokens-golang
69+
- [ ] Examples apps in supertokens-python
70+
- [ ] Examples apps in supertokens-node. Update try.supertokens and rerun the pr checklist
71+
- [ ] Examples apps in android
72+
- [ ] Example apps in ios
73+
- [ ] Example apps in flutter
74+
- [ ] [next.js:canary](https://github.com/supertokens/next.js/tree/canary/examples/with-supertokens)
75+
- [ ] RedwoodJS and playground-auth
76+
- [ ] Run on netlify (and hence AWS lambda) to check if it works fine there
77+
- [ ] Test on vercel (with-emailpassword-vercel app)
78+
- [ ] SuperTokens Jackson SAML example update
79+
- [ ] Supabase docs
80+
- [ ] Capacitor template app: https://github.com/RobSchilderr/capacitor-supertokens-nextjs-turborepo
81+
- [ ] T4 App: https://github.com/timothymiller/t4-app
8082

8183
### 📚 Documentation (test site)
8284

8385
- [ ] All recipe main documentation update
8486
- [ ] Code type checking versions are pointing to X.Y
85-
- [ ] jsEnv
86-
- [ ] goEnv
87-
- [ ] pythonEnv
87+
- [ ] jsEnv
88+
- [ ] goEnv
89+
- [ ] pythonEnv
8890
- [ ] Update table schema in mysql / postgresql section for self hosted
8991
- [ ] community documentation update
9092
- [ ] website changes (test.supertokens.io)
91-
- [ ] homepage
92-
- [ ] pricing page feature list
93-
- [ ] comparison chart in the pricing page
94-
- [ ] product roadmap page
95-
- [ ] Update API key code snippet in SaaS dashboard
96-
- [ ] Update recipe list and links to the docs for supertokens.com dashboard
93+
- [ ] homepage
94+
- [ ] pricing page feature list
95+
- [ ] comparison chart in the pricing page
96+
- [ ] product roadmap page
97+
- [ ] Update API key code snippet in SaaS dashboard
98+
- [ ] Update recipe list and links to the docs for supertokens.com dashboard
9799

98-
## 🔥 Production
100+
## 🔥 Production
99101

100102
### 💻 NPM and core release
101103

102-
- core
104+
- core
103105
- [ ] [supertokens-core:X.Y](https://github.com/supertokens/supertokens-core/tree/X.Y)
104106
- [ ] plugin-interface
105107
- [ ] mysql-plugin
106108
- [ ] postgresql-plugin
107109
- [ ] mongodb-plugin
108110
- Docker update
109-
- [ ] MySQL
110-
- [ ] check if new env cnofigs need to be added
111-
- [ ] Postgres
112-
- [ ] check if new env cnofigs need to be added
113-
- [ ] MongoDB
114-
- [ ] check if new env cnofigs need to be added
111+
- [ ] MySQL
112+
- [ ] check if new env cnofigs need to be added
113+
- [ ] Postgres
114+
- [ ] check if new env cnofigs need to be added
115+
- [ ] MongoDB
116+
- [ ] check if new env cnofigs need to be added
115117
- [ ] try.supertokens.io
116118
```
117119
docker rm try-supertokens -f
@@ -124,27 +126,29 @@ labels:
124126
- [ ] Run tests against golang sdk (all compatible versions)
125127
- [ ] Update SaaS config
126128
- [ ] Update to tables checked for user count / or to know if a deployment is being used or not
127-
- [ ] Update logic for deleting all data in dev env if a new table was added and if the data should be removed from it too
129+
- [ ] Update logic for deleting all data in dev env if a new table was added and if the data should be removed from
130+
it too
128131
- [ ] Update logic for exporting csv file for registered users
129132
- [ ] Update SaaS instances to use the latest docker images.
130-
- [ ] Change [checklist in contributing guide for which tables to pick when migrating data from dev to prod instance](https://test.supertokens.com/docs/contribute/checklists/saas/tables-to-consider-for-data-migration-dev-to-prod).
133+
- [ ]
134+
Change [checklist in contributing guide for which tables to pick when migrating data from dev to prod instance](https://test.supertokens.com/docs/contribute/checklists/saas/tables-to-consider-for-data-migration-dev-to-prod).
131135
- [ ] Update license key used for cores to include nea feature.
132136
- [ ] Update table schema in mysql / postgresql section for self hosted in docs.
133137
- [ ] Update paid feature to min version mapping in /st/features GET.
134138
- [ ] Update API that returns the list of paid features in saas dashboard
135139
- [ ] Update logic for core to core migration for new saas architecture:
136-
- [ ] transfer of master database information
137-
- [ ] deletion of master database information related to the CUD being transferred
138-
- [ ] [supertokens-node:X.Y](https://github.com/supertokens/supertokens-node/tree/X.Y)
139-
- [ ] [supertokens-golang:X.Y](https://github.com/supertokens/supertokens-golang/tree/X.Y)
140-
- [ ] [supertokens-website:X.Y](https://github.com/supertokens/supertokens-website/tree/X.Y)
141-
- [ ] [supertokens-web-js:X.Y](https://github.com/supertokens/supertokens-web-js/tree/X.Y)
142-
- [ ] [supertokens-auth-react:X.Y](https://github.com/supertokens/supertokens-auth-react/tree/X.Y)
143-
- [ ] [supertokens-python:X.Y](https://github.com/supertokens/supertokens-python/tree/X.Y)
144-
- [ ] [supertokens-react-native:X.Y](https://github.com/supertokens/supertokens-react-native/X.Y)
145-
- [ ] [supertokens-android:X.Y](https://github.com/supertokens/supertokens-android/X.Y)
146-
- [ ] [supertokens-ios:X.Y](https://github.com/supertokens/supertokens-ios/X.Y)
147-
- [ ] [supertokens-flutter:X.Y](https://github.com/supertokens/supertokens-flutter/X.Y)
140+
- [ ] transfer of master database information
141+
- [ ] deletion of master database information related to the CUD being transferred
142+
- [ ] [supertokens-node:X.Y](https://github.com/supertokens/supertokens-node/tree/X.Y)
143+
- [ ] [supertokens-golang:X.Y](https://github.com/supertokens/supertokens-golang/tree/X.Y)
144+
- [ ] [supertokens-website:X.Y](https://github.com/supertokens/supertokens-website/tree/X.Y)
145+
- [ ] [supertokens-web-js:X.Y](https://github.com/supertokens/supertokens-web-js/tree/X.Y)
146+
- [ ] [supertokens-auth-react:X.Y](https://github.com/supertokens/supertokens-auth-react/tree/X.Y)
147+
- [ ] [supertokens-python:X.Y](https://github.com/supertokens/supertokens-python/tree/X.Y)
148+
- [ ] [supertokens-react-native:X.Y](https://github.com/supertokens/supertokens-react-native/X.Y)
149+
- [ ] [supertokens-android:X.Y](https://github.com/supertokens/supertokens-android/X.Y)
150+
- [ ] [supertokens-ios:X.Y](https://github.com/supertokens/supertokens-ios/X.Y)
151+
- [ ] [supertokens-flutter:X.Y](https://github.com/supertokens/supertokens-flutter/X.Y)
148152
- [ ] [supertokens-dashboard](https://github.com/supertokens/dashboard)
149153
150154
### 📚 Documentation
@@ -161,24 +165,25 @@ labels:
161165
- [ ] Algolia search update for docs
162166
- [ ] robots.txt, sitemap.xml, noindex page update
163167
- Auto generate release note on github:
164-
- [ ] supertokens-core
165-
- [ ] supertokens-plugin-interface
166-
- [ ] supertokens-mysql-plugin
167-
- [ ] supertokens-postgresql-plugin
168-
- [ ] supertokens-mongodb-plugin
169-
- [ ] supertokens-node
170-
- [ ] supertokens-golang
171-
- [ ] supertokens-python
172-
- [ ] supertokens-website
173-
- [ ] supertokens-web-js
174-
- [ ] supertokens-auth-react
175-
- [ ] supertokens-react-native
176-
- [ ] supertokens-android
177-
- [ ] supertokens-ios
178-
- [ ] supertokens-flutter
179-
- [ ] supertokens-dashboard
168+
- [ ] supertokens-core
169+
- [ ] supertokens-plugin-interface
170+
- [ ] supertokens-mysql-plugin
171+
- [ ] supertokens-postgresql-plugin
172+
- [ ] supertokens-mongodb-plugin
173+
- [ ] supertokens-node
174+
- [ ] supertokens-golang
175+
- [ ] supertokens-python
176+
- [ ] supertokens-website
177+
- [ ] supertokens-web-js
178+
- [ ] supertokens-auth-react
179+
- [ ] supertokens-react-native
180+
- [ ] supertokens-android
181+
- [ ] supertokens-ios
182+
- [ ] supertokens-flutter
183+
- [ ] supertokens-dashboard
180184
181185
### Contents of running try.supertokens.com script:
186+
182187
```bash
183188
docker run -d \
184189
--restart=always \

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ highlighting the necessary changes)
2929
- [ ] Had installed and ran the pre-commit hook
3030
- [ ] If there are new dependencies that have been added in `build.gradle`, please make sure to add them
3131
in `implementationDependencies.json`.
32-
- [ ] Update function `getValidFields` in `io/supertokens/config/CoreConfig.java` if new aliases were added for any core config (similar to the `access_token_signing_key_update_interval` config alias).
32+
- [ ] Update function `getValidFields` in `io/supertokens/config/CoreConfig.java` if new aliases were added for any core
33+
config (similar to the `access_token_signing_key_update_interval` config alias).
3334
- [ ] Issue this PR against the latest non released version branch.
3435
- To know which one it is, run find the latest released tag (`git tag`) in the format `vX.Y.Z`, and then find the
3536
latest branch (`git branch --all`) whose `X.Y` is greater than the latest released tag.
3637
- If no such branch exists, then create one from the latest released branch.
37-
- [ ] If added a foreign key constraint on `app_id_to_user_id` table, make sure to delete from this table when deleting the user as well if `deleteUserIdMappingToo` is false.
38+
- [ ] If added a foreign key constraint on `app_id_to_user_id` table, make sure to delete from this table when deleting
39+
the user as well if `deleteUserIdMappingToo` is false.
40+
3841
## Remaining TODOs for this PR
3942

4043
- [ ] Item1
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: "Enforcing changelog in PRs Workflow"
22
on:
33
pull_request:
4-
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
4+
types: [ opened, synchronize, reopened, ready_for_review, labeled, unlabeled ]
55

66
jobs:
77
# Enforces the update of a changelog file on every pull request
88
changelog:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: dangoslen/changelog-enforcer@v2
13-
with:
14-
changeLogPath: 'CHANGELOG.md'
15-
skipLabels: 'Skip-Changelog'
11+
- uses: actions/checkout@v2
12+
- uses: dangoslen/changelog-enforcer@v2
13+
with:
14+
changeLogPath: 'CHANGELOG.md'
15+
skipLabels: 'Skip-Changelog'

.github/workflows/lint-pr-title.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
name: "Lint PR Title"
22

33
on:
4-
pull_request:
5-
types:
6-
- opened
7-
- reopened
8-
- edited
9-
- synchronize
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- edited
9+
- synchronize
1010

1111
jobs:
12-
pr-title:
13-
name: Lint PR title
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: amannn/action-semantic-pull-request@v3
17-
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
with:
20-
validateSingleCommit: true
12+
pr-title:
13+
name: Lint PR title
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: amannn/action-semantic-pull-request@v3
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
with:
20+
validateSingleCommit: true

0 commit comments

Comments
 (0)