comAtprotoIdentityRefreshIdentity function

Future<XRPCResponse<IdentityInfo>> comAtprotoIdentityRefreshIdentity({
  1. required String identifier,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $unknown,
})

Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server.

Implementation

Future<XRPCResponse<IdentityInfo>> comAtprotoIdentityRefreshIdentity({
  required String identifier,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.comAtprotoIdentityRefreshIdentity,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'identifier': identifier},
  to: const IdentityInfoConverter().fromJson,
);