From f12f63004cdc109c5717ef616b91bd54047645c6 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Fri, 14 Oct 2022 16:57:15 +0200 Subject: [PATCH] Fix /refresh endpoint to be V1 instead of V3 --- content/client-server-api/_index.md | 2 +- data/api/client-server/refresh.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/client-server-api/_index.md b/content/client-server-api/_index.md index dd50f2250..143d460f9 100644 --- a/content/client-server-api/_index.md +++ b/content/client-server-api/_index.md @@ -403,7 +403,7 @@ Access tokens can expire after a certain amount of time. Any HTTP calls that use an expired access token will return with an error code `M_UNKNOWN_TOKEN`, preferably with `soft_logout: true`. When a client receives this error and it has a refresh token, it should attempt to refresh the access token by calling -[`/refresh`](#post_matrixclientv3refresh). Clients can also refresh their +[`/refresh`](#post_matrixclientv1refresh). Clients can also refresh their access token at any time, even if it has not yet expired. If the token refresh succeeds, the client should use the new token for future requests, and can re-try previously-failed requests with the new token. When an access token is diff --git a/data/api/client-server/refresh.yaml b/data/api/client-server/refresh.yaml index da34070c4..bdae2d734 100644 --- a/data/api/client-server/refresh.yaml +++ b/data/api/client-server/refresh.yaml @@ -19,7 +19,7 @@ host: localhost:8008 schemes: - https - http -basePath: /_matrix/client/v3 +basePath: /_matrix/client/v1 consumes: - application/json produces: