getServiceAuth method

Future<XRPCResponse<ServiceAuthToken>> getServiceAuth({
  1. required String aud,
  2. int? exp,
  3. NSID? lxm,
  4. Map<String, String>? headers,
})

Implementation

Future<core.XRPCResponse<ServiceAuthToken>> getServiceAuth({
  required String aud,
  int? exp,
  core.NSID? lxm,
  Map<String, String>? headers,
}) async =>
    await _ctx.get(
      ns.comAtprotoServerGetServiceAuth,
      headers: headers,
      parameters: {
        'aud': aud,
        'exp': exp,
        'lxm': lxm.toString(),
      },
      to: ServiceAuthToken.fromJson,
    );