authorizeWithAgt method Null safety

Future<String> authorizeWithAgt(
  1. {required List<String> scopes,
  2. String? clientId,
  3. String? redirectUri,
  4. String? codeVerifier,
  5. String? nonce}
)

Implementation

Future<String> authorizeWithAgt({
  required List<String> scopes,
  String? clientId,
  String? redirectUri,
  String? codeVerifier,
  String? nonce,
}) async {
  final agt = await _kauthApi.agt();
  try {
    return authorize(
      clientId: clientId,
      redirectUri: redirectUri,
      scopes: scopes,
      agt: agt,
      codeVerifier: codeVerifier,
      nonce: nonce,
    );
  } catch (e) {
    rethrow;
  }
}