comAtprotoServerGetServiceAuth function

Future<XRPCResponse<ServerGetServiceAuthOutput>> comAtprotoServerGetServiceAuth({
  1. required String aud,
  2. int? exp,
  3. String? lxm,
  4. required ServiceContext $ctx,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

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

Implementation

Future<XRPCResponse<ServerGetServiceAuthOutput>>
comAtprotoServerGetServiceAuth({
  required String aud,
  int? exp,
  String? lxm,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoServerGetServiceAuth,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'aud': aud,
    if (exp != null) 'exp': exp,
    if (lxm != null) 'lxm': lxm,
  },
  to: const ServerGetServiceAuthOutputConverter().fromJson,
);