createPkce static method

Future<PKCE> createPkce()

Creates PKCE authentication request parameters.

For more information on PKCE see https://datatracker.ietf.org/doc/html/rfc7636.

Returns a set of new parameters in a PKCE object.

Implementation

static Future<PKCE> createPkce() async {
  final Map<String, dynamic>? pkceMap = await _channel.invokeMapMethod("createPkce");
  return PKCE(
    codeVerifier: pkceMap?["codeVerifier"],
    codeChallenge: pkceMap?["codeChallenge"],
    codeChallengeMethod: pkceMap?["codeChallengeMethod"],
  );
}