From 8ee64d43ce5f8a8a4c03e842641e185764165bd3 Mon Sep 17 00:00:00 2001 From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com> Date: Fri, 1 Mar 2024 16:35:52 +0530 Subject: [PATCH] Update endpoint description --- app/controllers/api/account.php | 2 +- docs/references/account/update-session.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 94e469d85..4f35229eb 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -2709,7 +2709,7 @@ App::delete('/v1/account/sessions/:sessionId') }); App::patch('/v1/account/sessions/:sessionId') - ->desc('Update (or renew) session') + ->desc('Update session') ->groups(['api', 'account']) ->label('scope', 'account') ->label('event', 'users.[userId].sessions.[sessionId].update') diff --git a/docs/references/account/update-session.md b/docs/references/account/update-session.md index 55226fe0b..11f3ddd5e 100644 --- a/docs/references/account/update-session.md +++ b/docs/references/account/update-session.md @@ -1 +1 @@ -Extend session's expiry to increase it's lifespan. Extending a session is useful when session length is short such as 5 minutes. \ No newline at end of file +Use this endpoint to extend a session's length. Extending a session is useful when session expiry is short. If the session was created using an OAuth provider, this endpoint refreshes the access token from the provider. \ No newline at end of file