BlueskyChat.fromOAuthSession constructor
BlueskyChat.fromOAuthSession(
- OAuthSession session, {
- Map<
String, String> ? headers, - Protocol? protocol,
- String? service,
- String? relayService,
- Duration? timeout,
- RetryConfig? retryConfig,
- GetClient? mockedGetClient,
- PostClient? mockedPostClient,
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? mockedGetClient,
final core.PostClient? mockedPostClient,
}) =>
_BlueskyChat(
BlueskyServiceContext(
atproto: atp.ATProto.fromOAuthSession(
headers: {
...?headers,
..._kBskyChatProxyHeaders,
},
session,
protocol: protocol,
service: service,
relayService: relayService,
timeout: timeout,
retryConfig: retryConfig,
mockedGetClient: mockedGetClient,
mockedPostClient: mockedPostClient,
),
headers: {
...?headers,
..._kBskyChatProxyHeaders,
},
protocol: protocol,
service: service,
relayService: relayService,
oAuthSession: session,
timeout: timeout,
retryConfig: retryConfig,
mockedGetClient: mockedGetClient,
mockedPostClient: mockedPostClient,
),
);