getUserFlowUrl method

String getUserFlowUrl({
  1. required String userFlow,
})

Constructs the user flow URL with optional parameters.

Implementation

String getUserFlowUrl({required String userFlow}) {
  List<String>? userFlowSplit = userFlow.split('?');
  //Check if the user added the full user flow or just till 'authorize'
  if (userFlowSplit.length == 1) {
    return concatUserFlow(userFlow);
  }
  return userFlow;
}