createOrg method

Future<void> createOrg({
  1. required String orgName,
  2. AuthFlowType? type,
  3. String? planInterest,
  4. String? pricingTableKey,
})

Implementation

Future<void> createOrg({
  required String orgName,
  AuthFlowType? type,
  String? planInterest,
  String? pricingTableKey,
}) async {
  final params = _prepareInternalAdditionalParameters(AdditionalParameters(
    planInterest: planInterest,
    pricingTableKey: pricingTableKey,
  ));
  params.registrationPage = _registrationPageParamValue;
  params.createOrg = true;
  params.orgName = orgName;

  await _redirectToKinde(type: type, internalAdditionalParameters: params);
}