From d32f3983459840f967065cf1f1cd39d7fd395092 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Sat, 27 Jul 2024 22:25:34 -0400 Subject: [PATCH] Fix comment for useAuthorizationHeader config. (#4330) --- src/client.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index 32ce1b26850..ae80589e97c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -324,10 +324,13 @@ export interface ICreateClientOpts { localTimeoutMs?: number; /** - * Set to true to use - * Authorization header instead of query param to send the access token to the server. + * Set to false to send the access token to the server via a query parameter rather + * than the Authorization HTTP header. * - * Default false. + * Note that as of v1.11 of the Matrix spec, sending the access token via a query + * is deprecated. + * + * Default true. */ useAuthorizationHeader?: boolean;