Skip to content

Commit ff1071e

Browse files
authored
fix: config parameter name and curl method (#849)
1 parent 64089bb commit ff1071e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/guides/session-management/refresh-extend-session.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import TabItem from '@theme/TabItem'
4141
<TabItem value="curl">
4242
4343
```shell script
44-
$ curl 'https://{your-project-slug}.projects.oryapis.com/admin/sessions/ede90ce6-2420-435a-a745-3d8ab1a9636c/extend' \
44+
$ curl -X PATCH 'https://{your-project-slug}.projects.oryapis.com/admin/sessions/ede90ce6-2420-435a-a745-3d8ab1a9636c/extend' \
4545
-H 'Accept: application/json' | jq
4646
4747
{
@@ -90,18 +90,18 @@ $ curl 'https://{your-project-slug}.projects.oryapis.com/admin/sessions/ede90ce6
9090

9191
Refreshing sessions causes database writes.
9292

93-
To reduce the database load, you can limit the time in which the session can be refreshed by adjusting the `earliest_refresh`
93+
To reduce the database load, you can limit the time in which the session can be refreshed by adjusting the `earliest_possible_extend`
9494
configuration.
9595

96-
For example, if you set `earliest_refresh` to `24h`, sessions can't be refreshed until 24 hours before they expire. This setting
96+
For example, if you set `earliest_possible_extend` to `24h`, sessions can't be refreshed until 24 hours before they expire. This setting
9797
prevents putting excessive load on the database.
9898

99-
If you need high flexibility when extending sessions, you can set `earliest_refresh` to `lifespan`, which allows sessions to be
99+
If you need high flexibility when extending sessions, you can set `earliest_possible_extend` to `lifespan`, which allows sessions to be
100100
refreshed during their entire lifespan, even right after they are created.
101101

102102
:::warning
103103

104-
If you set `earliest_refresh` to `lifespan`, all sessions will constantly be refreshed!
104+
If you set `earliest_possible_extend` to `lifespan`, all sessions will constantly be refreshed!
105105

106106
:::
107107

0 commit comments

Comments
 (0)