Flow.authorizationCodeWithPKCE constructor

Flow.authorizationCodeWithPKCE(
  1. Client client, {
  2. String? state,
  3. String? prompt,
  4. List<String> scopes = const ['openid', 'profile', 'email'],
  5. String? codeVerifier,
  6. Map<String, String>? additionalParameters,
})

Implementation

Flow.authorizationCodeWithPKCE(
  Client client, {
  String? state,
  String? prompt,
  List<String> scopes = const ['openid', 'profile', 'email'],
  String? codeVerifier,
  Map<String, String>? additionalParameters,
}) : this._(
        FlowType.proofKeyForCodeExchange,
        'code',
        client,
        state: state,
        scopes: scopes,
        codeVerifier: codeVerifier,
        additionalParameters: {
          if (prompt != null) 'prompt': prompt,
          ...?additionalParameters
        },
      );