BlueskyChat.fromOAuthSession constructor

BlueskyChat.fromOAuthSession(
  1. OAuthSession session, {
  2. Map<String, String>? headers,
  3. Protocol? protocol,
  4. String? service,
  5. String? relayService,
  6. Duration? timeout,
  7. RetryConfig? retryConfig,
  8. GetClient? getClient,
  9. PostClient? postClient,
})

Returns the new instance of BlueskyChat.

Implementation

factory BlueskyChat.fromOAuthSession(
  final oauth.OAuthSession session, {
  final Map<String, String>? headers,
  final core.Protocol? protocol,
  final String? service,
  final String? relayService,
  final Duration? timeout,
  final core.RetryConfig? retryConfig,
  final core.GetClient? getClient,
  final core.PostClient? postClient,
}) => _BlueskyChat(
  core.ServiceContext(
    headers: {...?headers, ..._kBskyChatProxyHeaders},
    protocol: protocol,
    service: service,
    relayService: relayService,
    oAuthSession: session,
    timeout: timeout,
    retryConfig: retryConfig,
    getClient: getClient,
    postClient: postClient,
  ),
  atp.ATProto.fromOAuthSession(
    headers: {...?headers, ..._kBskyChatProxyHeaders},
    session,
    protocol: protocol,
    service: service,
    relayService: relayService,
    timeout: timeout,
    retryConfig: retryConfig,
    getClient: getClient,
    postClient: postClient,
  ),
);