createSession method

Future<XRPCResponse<ServerCreateSessionOutput>> createSession({
  1. required String identifier,
  2. required String password,
  3. String? authFactorToken,
  4. bool? allowTakendown,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Create an authentication session.

Implementation

Future<XRPCResponse<ServerCreateSessionOutput>> createSession({
  required String identifier,
  required String password,
  String? authFactorToken,
  bool? allowTakendown,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await comAtprotoServerCreateSession(
  identifier: identifier,
  password: password,
  authFactorToken: authFactorToken,
  allowTakendown: allowTakendown,
  $ctx: _ctx,
  $headers: $headers,
  $unknown: $unknown,
);