OptionalaccessOptionalauthDiscovers and validates the delegated auth server's metadata for the current homeserver. Must be supplied along with oauth2ClientConfig in order to refresh tokens.
validated authentication metadata
OptionalextraOptionalfetchOptionalidOptionallocalOptionalloggerOptional logger instance. If provided, requests and responses will be logged.
Optionaloauth2Configuration needed to refresh (given refreshToken) and revoke (e.g. on logout) tokens for an OAuth2-native session. Optional; if omitted, tokens will not be refreshed or revoked by the SDK. authMetadataCallback must also be supplied to refresh tokens.
OptionalonlyFor historical reasons, must be set to true. Will eventually be removed.
OptionalonCallback called when tokens are refreshed. Must be supplied if refreshToken is supplied.
OptionalrefreshUsed in conjunction with oauth2ClientConfig to attempt token refresh
OptionaluseWhether to use the HTTP Authorization header over the access_token query parameter
as of v1.11 in https://spec.matrix.org/v1.17/client-server-api/#using-access-tokens
Options object for
FetchHttpApiand MatrixHttpApi.