refreshSession function

Future<XRPCResponse<RefreshSessionOutput>> refreshSession({
  1. Protocol? $protocol,
  2. String? $service,
  3. RetryConfig? $retryConfig,
  4. Map<String, String>? $unknown,
  5. Map<String, String>? $headers,
  6. PostClient? $client,
})

Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt').

https://atprotodart.com/docs/lexicons/com/atproto/server/refreshSession

Implementation

Future<XRPCResponse<RefreshSessionOutput>> refreshSession({
  Protocol? $protocol,
  String? $service,
  RetryConfig? $retryConfig,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _$Fn(
      protocol: $protocol,
      service: $service,
      retryConfig: $retryConfig,
    ).refreshSession(
      $unknown: $unknown,
      $headers: $headers,
      $client: $client,
    );