@@ -844,6 +844,9 @@ Login/Logout
844844
845845 Default: ``["POST"] ``.
846846
847+ .. versionchanged :: 5.9.0
848+ Default changed to just allowing ``"POST" ``.
849+
847850
848851.. py :data :: SECURITY_POST_LOGIN_VIEW
849852
@@ -1055,10 +1058,12 @@ Confirmable
10551058 Default: ``False ``.
10561059.. py :data :: SECURITY_CONFIRM_EMAIL_WITHIN
10571060
1058- Specifies the amount of time a user has before their confirmation
1059- link expires. Always pluralize the time unit for this value.
1061+ Specifies how long until the confirmation link expires.
1062+
1063+ Default: ``timedelta(days=2) ``.
10601064
1061- Default: ``"5 days" ``.
1065+ .. versionchanged :: 5.9.0
1066+ Accepted value changed to a timedelta
10621067.. py :data :: SECURITY_CONFIRM_URL
10631068
10641069 Specifies the email confirmation URL.
@@ -1221,10 +1226,12 @@ Recoverable
12211226
12221227.. py :data :: SECURITY_RESET_PASSWORD_WITHIN
12231228
1224- Specifies the amount of time a user has before their password reset link expires.
1225- Always pluralize the time unit for this value.
1229+ Specifies how long until the reset link expires.
1230+
1231+ Default: ``timedelta(days=1) ``.
12261232
1227- Default: ``"1 days" ``.
1233+ .. versionchanged :: 5.9.0
1234+ Accepted value changed to a timedelta
12281235
12291236.. py :data :: SECURITY_SEND_PASSWORD_RESET_EMAIL
12301237
@@ -1273,10 +1280,12 @@ Change-Email
12731280 Default: ``"security/change_email.html" ``.
12741281.. py :data :: SECURITY_CHANGE_EMAIL_WITHIN
12751282
1276- Specifies the amount of time a user has before their change email
1277- token expires. Always pluralize the time unit for this value.
1283+ Specifies how long until the change email token expires.
1284+
1285+ Default: ``timedelta(hours=2) ``.
12781286
1279- Default: ``"2 hours" ``
1287+ .. versionchanged :: 5.9.0
1288+ Accepted value changed to a timedelta
12801289.. py :data :: SECURITY_POST_CHANGE_EMAIL_VIEW
12811290
12821291 Specifies the view to redirect to after a user successfully confirms their new email address.
@@ -1357,10 +1366,12 @@ Configuration related to the two-factor authentication feature.
13571366 Default: ``120 ``.
13581367.. py :data :: SECURITY_TWO_FACTOR_SETUP_WITHIN
13591368
1360- Specifies the amount of time a user has before their two-factor setup
1361- token expires. Always pluralize the time unit for this value.
1369+ Specifies how long until the setup token expires.
13621370
1363- Default: ``"30 minutes" ``
1371+ Default: ``timedelta(minutes=30) ``.
1372+
1373+ .. versionchanged :: 5.9.0
1374+ Accepted value changed to a timedelta
13641375
13651376 .. versionadded :: 5.5.0
13661377.. py :data :: SECURITY_TWO_FACTOR_RESCUE_MAIL
@@ -1458,7 +1469,10 @@ Configuration related to the two-factor authentication feature.
14581469
14591470 Specifies the expiration of the two-factor validity cookie and verification of the token.
14601471
1461- Default: ``"30 Days" ``.
1472+ Default: ``timedelta(days=30) ``.
1473+
1474+ .. versionchanged :: 5.9.0
1475+ Accepted value changed to a timedelta
14621476
14631477
14641478.. py :data :: SECURITY_TWO_FACTOR_VALIDITY_COOKIE_NAME
@@ -1612,10 +1626,12 @@ Unified Signin
16121626
16131627.. py :data :: SECURITY_US_SETUP_WITHIN
16141628
1615- Specifies the amount of time a user has before their setup
1616- token expires. Always pluralize the time unit for this value.
1629+ Specifies how long until the setup token expires.
16171630
1618- Default: ``"30 minutes" ``
1631+ Default: ``timedelta(minutes=30) ``.
1632+
1633+ .. versionchanged :: 5.9.0
1634+ Accepted value changed to a timedelta
16191635
16201636.. py :data :: SECURITY_US_SIGNIN_REPLACES_LOGIN
16211637
@@ -1755,10 +1771,12 @@ This feature is DEPRECATED as of 5.0.0. Please use unified signin feature instea
17551771
17561772.. py :data :: SECURITY_LOGIN_WITHIN
17571773
1758- Specifies the amount of time a user has before a login link expires.
1759- Always pluralize the time unit for this value.
1774+ Specifies how long until the login link expires.
1775+
1776+ Default: ``timedelta(days=1) ``.
17601777
1761- Default: ``"1 days" ``.
1778+ .. versionchanged :: 5.9.0
1779+ Accepted value changed to a timedelta
17621780
17631781.. py :data :: SECURITY_LOGIN_ERROR_VIEW
17641782
@@ -1849,10 +1867,12 @@ WebAuthn
18491867
18501868.. py :data :: SECURITY_WAN_REGISTER_WITHIN
18511869
1852- Specifies the amount of time a user has before their register
1853- token expires. Always pluralize the time unit for this value.
1870+ Specifies how long until the passkey registration token expires.
1871+
1872+ Default: ``timedelta(minutes=30) ``.
18541873
1855- Default: ``"30 minutes" ``
1874+ .. versionchanged :: 5.9.0
1875+ Accepted value changed to a timedelta
18561876
18571877.. py :data :: SECURITY_WAN_REGISTER_TIMEOUT
18581878
@@ -1863,10 +1883,12 @@ WebAuthn
18631883
18641884.. py :data :: SECURITY_WAN_SIGNIN_WITHIN
18651885
1866- Specifies the amount of time a user has before their signin
1867- token expires. Always pluralize the time unit for this value.
1886+ Specifies how long until the passkey signin token expires.
18681887
1869- Default: ``"1 minutes" ``
1888+ Default: ``timedelta(minutes=1) ``.
1889+
1890+ .. versionchanged :: 5.9.0
1891+ Accepted value changed to a timedelta
18701892
18711893.. py :data :: SECURITY_WAN_SIGNIN_TIMEOUT
18721894
0 commit comments