You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
11
+
12
+
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your
13
+
changes work. Bonus points for screenshots and videos!)
10
14
11
15
## Documentation changes
12
-
(If relevant, please create a PR in our [docs repo](https://github.com/supertokens/docs), or create a checklist here highlighting the necessary changes)
16
+
17
+
(If relevant, please create a PR in our [docs repo](https://github.com/supertokens/docs), or create a checklist here
18
+
highlighting the necessary changes)
13
19
14
20
## Checklist for important updates
21
+
15
22
-[ ] Changelog has been updated
16
23
-[ ]`pluginInterfaceSupported.json` file has been updated (if needed)
17
24
-[ ] Changes to the version if needed
18
-
- In `build.gradle`
25
+
- In `build.gradle`
19
26
-[ ] Had installed and ran the pre-commit hook
20
-
-[ ] If there are new dependencies that have been added in `build.gradle`, please make sure to add them in `implementationDependencies.json`.
27
+
-[ ] If there are new dependencies that have been added in `build.gradle`, please make sure to add them
28
+
in `implementationDependencies.json`.
21
29
-[ ] Issue this PR against the latest non released version branch.
22
-
- 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.
23
-
- If no such branch exists, then create one from the latest released branch.
30
+
- To know which one it is, run find the latest released tag (`git tag`) in the format `vX.Y.Z`, and then find the
31
+
latest branch (`git branch --all`) whose `X.Y` is greater than the latest released tag.
32
+
- If no such branch exists, then create one from the latest released branch.
24
33
-[ ] When adding new recipes, ensure that its performance is being measured in the `OneMillionUsersTest`
and `primary_or_recipe_user_time_joined` to `all_auth_recipe_users` table
95
+
- Adds columns `primary_or_recipe_user_id` and `is_linked_or_is_a_primary_user` to `app_id_to_user_id` table
96
+
- Removes index `all_auth_recipe_users_pagination_index` and addes `all_auth_recipe_users_pagination_index1`,
97
+
`all_auth_recipe_users_pagination_index2`, `all_auth_recipe_users_pagination_index3` and
98
+
`all_auth_recipe_users_pagination_index4` indexes instead on `all_auth_recipe_users` table
99
+
- Adds `all_auth_recipe_users_recipe_id_index` on `all_auth_recipe_users` table
100
+
- Adds `all_auth_recipe_users_primary_user_id_index` on `all_auth_recipe_users` table
101
+
- Adds `email` column to `emailpassword_pswd_reset_tokens` table
102
+
- Changes `user_id` foreign key constraint on `emailpassword_pswd_reset_tokens` to `app_id_to_user_id` table
101
103
102
104
### Migration
103
105
@@ -178,21 +180,20 @@ CREATE INDEX IF NOT EXISTS app_id_to_user_id_primary_user_id_index ON app_id_to_
178
180
179
181
- Fixes null pointer issue when user belongs to no tenant.
180
182
181
-
182
183
## [4.0.1] - 2023-07-11
183
184
184
185
- Fixes duplicate users in users search queries when user is associated to multiple tenants
185
186
186
-
187
187
## [4.0.0] - 2023-06-02
188
188
189
189
### Changes
190
190
191
191
- Support for multitenancy
192
-
- New tables `apps` and `tenants` have been added.
193
-
- Schema of tables have been changed, adding `app_id` and `tenant_id` columns in tables and constraints & indexes have been modified to include this columns.
194
-
- New user tables have been added to map users to apps and tenants.
195
-
- New tables for multitenancy have been added.
192
+
- New tables `apps` and `tenants` have been added.
193
+
- Schema of tables have been changed, adding `app_id` and `tenant_id` columns in tables and constraints & indexes
194
+
have been modified to include this columns.
195
+
- New user tables have been added to map users to apps and tenants.
196
+
- New tables for multitenancy have been added.
196
197
- Increased transaction retry count to 50 from 20.
197
198
198
199
### Migration
@@ -1070,34 +1071,37 @@ CREATE INDEX IF NOT EXISTS app_id_to_user_id_primary_user_id_index ON app_id_to_
1070
1071
### Migration
1071
1072
1072
1073
- If using `access_token_signing_key_dynamic` false in the core:
1073
-
-```sql
1074
-
ALTER TABLE session_info ADD COLUMN use_static_key BOOLEAN NOT NULL DEFAULT(true);
1075
-
ALTER TABLE session_info ALTER COLUMN use_static_key DROP DEFAULT;
1074
+
-```sql
1075
+
ALTER TABLE session_info ADD COLUMN use_static_key BOOLEAN NOT NULL DEFAULT(true);
1076
+
ALTER TABLE session_info ALTER COLUMN use_static_key DROP DEFAULT;
1076
1077
```
1077
-
-```sql
1078
+
-```sql
1078
1079
INSERT INTO jwt_signing_keys(key_id, key_string, algorithm, created_at)
1079
1080
select CONCAT('s-', created_at_time) as key_id, value as key_string, 'RS256' as algorithm, created_at_time as created_at
1080
1081
from session_access_token_signing_keys;
1081
1082
```
1082
1083
- If using `access_token_signing_key_dynamic` true (or not set) in the core:
1083
-
-```sql
1084
-
ALTER TABLE session_info ADD COLUMN use_static_key BOOLEAN NOT NULL DEFAULT(false);
1085
-
ALTER TABLE session_info ALTER COLUMN use_static_key DROP DEFAULT;
1084
+
-```sql
1085
+
ALTER TABLE session_info ADD COLUMN use_static_key BOOLEAN NOT NULL DEFAULT(false);
1086
+
ALTER TABLE session_info ALTER COLUMN use_static_key DROP DEFAULT;
1086
1087
```
1087
1088
1088
1089
## [2.4.0] - 2023-03-30
1089
1090
1090
1091
- Support for Dashboard Search
1091
1092
1092
1093
## [2.3.0] - 2023-03-27
1094
+
1093
1095
- Support for TOTP recipe
1094
1096
- Support for active users
1095
1097
1096
1098
### Database changes
1099
+
1097
1100
- Add new tables for TOTP recipe:
1098
-
-`totp_users` that stores the users that have enabled TOTP
1099
-
-`totp_user_devices` that stores devices (each device has its own secret) for each user
1100
-
-`totp_used_codes` that stores used codes for each user. This is to implement rate limiting and prevent replay attacks.
1101
+
-`totp_users` that stores the users that have enabled TOTP
1102
+
-`totp_user_devices` that stores devices (each device has its own secret) for each user
1103
+
-`totp_used_codes` that stores used codes for each user. This is to implement rate limiting and prevent replay
1104
+
attacks.
1101
1105
- Add `user_last_active` table to store the last active time of a user.
0 commit comments