matrix-js-sdk
    Preparing search index...

    Interface OAuth2ClientConfig

    Configuration required for IHttpOpts to allow the SDK to manage the full lifecycle of tokens for an OAuth2-native session (as per MSC2965/MSC3861): discovering the delegated auth server's metadata, refreshing access/refresh tokens, and revoking them (e.g. on logout).

    The SDK constructs the underlying OAuth2 client itself, lazily, the first time it is actually needed (so that, for example, a client started with no network connection does not fail to ever set up token refresh).

    interface OAuth2ClientConfig {
        clientId: string;
        deviceId?: string;
    }
    Index
    clientId: string

    The OAuth2 client ID this application is registered with the delegated auth server under.

    deviceId?: string

    The device ID of the current session, used to scope refreshed/revoked tokens to this session.