createAppPassword method
Create an App Password.
https://atprotodart.com/docs/lexicons/com/atproto/server/createAppPassword
Implementation
Future<XRPCResponse<AppPassword>> createAppPassword({
required String name,
bool? privileged,
Map<String, String>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.post<AppPassword>(
ns.comAtprotoServerCreateAppPassword,
headers: $headers,
body: {
'name': name,
if (privileged != null) 'privileged': privileged,
...?$unknown,
},
to: const AppPasswordConverter().fromJson,
client: $client,
);