createSession function

Future<XRPCResponse<Session>> createSession({
  1. Protocol? protocol,
  2. String? service,
  3. required String identifier,
  4. required String password,
  5. String? authFactorToken,
  6. RetryConfig? retryConfig,
  7. PostClient? mockedPostClient,
})

Implementation

Future<xrpc.XRPCResponse<Session>> createSession({
  xrpc.Protocol? protocol,
  String? service,
  required String identifier,
  required String password,
  String? authFactorToken,
  RetryConfig? retryConfig,
  final xrpc.PostClient? mockedPostClient,
}) async =>
    await _Sessions(
      protocol: protocol,
      service: service,
      retryConfig: retryConfig,
      mockedPostClient: mockedPostClient,
    ).createSession(
      identifier: identifier,
      password: password,
      authFactorToken: authFactorToken,
    );