Skip to content

Commit

Permalink
Fix comment for useAuthorizationHeader config. (#4330)
Browse files Browse the repository at this point in the history
  • Loading branch information
uhoreg committed Jul 28, 2024
1 parent 0f08c00 commit d32f398
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d32f398

Please sign in to comment.