getServiceAuth method

Future<XRPCResponse<GetServiceAuthOutput>> getServiceAuth({
  1. required String aud,
  2. int? exp,
  3. NSID? lxm,
  4. Map<String, String>? $unknown,
  5. Map<String, String>? $headers,
  6. GetClient? $client,
})

Get a signed token on behalf of the requesting DID for the requested service.

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

Implementation

Future<XRPCResponse<GetServiceAuthOutput>> getServiceAuth({
  required String aud,
  int? exp,
  NSID? lxm,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<GetServiceAuthOutput>(
      ns.comAtprotoServerGetServiceAuth,
      headers: $headers,
      parameters: {
        'aud': aud,
        if (exp != null) 'exp': exp.toString(),
        if (lxm != null) 'lxm': lxm.toString(),
        ...?$unknown,
      },
      to: const GetServiceAuthOutputConverter().fromJson,
      client: $client,
    );