launchNtutService function

Future<void> launchNtutService(
  1. AuthRepository authRepository,
  2. String serviceCode
)

Launches serviceCode in a browser with an authenticated NTUT SSO URL.

Implementation

Future<void> launchNtutService(
  AuthRepository authRepository,
  String serviceCode,
) async {
  final url = await authRepository.getSsoUrl(serviceCode);
  await launchUrl(url, inExternalApplication: Platform.isIOS);
}