resendChannels property

List<AuthwayEnum> get resendChannels

Channels offered for "resend". Uses the dashboard configuration when available; falls back to every channel valid for the target type.

Implementation

List<AuthwayEnum> get resendChannels {
  final configured = config.authMethods
      .map(_channelFromApiName)
      .whereType<AuthwayEnum>()
      .toList();
  final all = configured.isEmpty ? AuthwayEnum.values.toList() : configured;
  return isEmail
      ? all.where((c) => c == AuthwayEnum.email).toList()
      : all.where((c) => c != AuthwayEnum.email).toList();
}