comAtprotoServerRefreshSession function

Future<XRPCResponse<ServerRefreshSessionOutput>> comAtprotoServerRefreshSession({
  1. required ServiceContext $ctx,
  2. Map<String, String>? $headers,
})

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

Implementation

Future<XRPCResponse<ServerRefreshSessionOutput>>
comAtprotoServerRefreshSession({
  required ServiceContext $ctx,
  Map<String, String>? $headers,
}) async => await $ctx.post(
  ns.comAtprotoServerRefreshSession,
  headers: {...?$headers},
  to: const ServerRefreshSessionOutputConverter().fromJson,
);