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
@@ -161,7 +163,7 @@ Next, any remaining legacy tokens that do not have hashed values will need to be
161
163
Lastly, after enough time and we are comfortable:
162
164
163
165
1. The codebase is updated to not access the `token` and `refresh_token` attributes of the `ApiToken` model.
164
-
2. The `token` and `refresh_token` fields are removed from the model and the migration is applied.
166
+
2. The `token` and `refresh_token` fields are removed from the model and the migration is applied, dropping the columns from the table.
165
167
166
168
> _These should be done in two separate deployments to ensure we have no release running in production that may try to use these fields before the migration removes the columns._
167
169
@@ -190,3 +192,8 @@ We would then follow a similar approach to Option #1 or Option #2 to generate th
190
192
-_This value could be used to inform how long we wait between versions for the migration that will edit pending rows in the database._
191
193
- What is the best way to store `token_type`?
192
194
- Can we use Django's `models.TextChoices` and store strings or should we use an integer-to-string mapping?
195
+
196
+
# Future Work
197
+
198
+
- Allow users to actually set the expiration durations on their API tokens
199
+
- We can still support indefinite durations to maintain backwards compatibility
0 commit comments