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,
})

Implementation

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