comAtprotoServerGetServiceAuth function
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,
);