comAtprotoServerGetSession function

Future<XRPCResponse<ServerGetSessionOutput>> comAtprotoServerGetSession({
  1. required ServiceContext $ctx,
  2. Map<String, String>? $headers,
  3. Map<String, String>? $unknown,
})

Get information about the current auth session. Requires auth.

Implementation

Future<XRPCResponse<ServerGetSessionOutput>> comAtprotoServerGetSession({
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoServerGetSession,
  headers: $headers,
  parameters: {...?$unknown},
  to: const ServerGetSessionOutputConverter().fromJson,
);