getSession method

Future<XRPCResponse<GetSessionOutput>> getSession({
  1. Map<String, String>? $unknown,
  2. Map<String, String>? $headers,
  3. GetClient? $client,
})

Get information about the current auth session. Requires auth.

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

Implementation

Future<XRPCResponse<GetSessionOutput>> getSession({
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<GetSessionOutput>(
      ns.comAtprotoServerGetSession,
      headers: $headers,
      to: const GetSessionOutputConverter().fromJson,
      client: $client,
    );