setCodeChallenge static method

dynamic setCodeChallenge(
  1. String codeChallenge
)

Set your own code challenge or use the utility method generateRandomCodeVerifier to generate one for you and set it via codeChallenge to this method Set it before calling getAuthorizationCode

Implementation

static setCodeChallenge(String codeChallenge) async =>
    await _methodChannel.invokeMethod('setCodeChallenge', {"codeChallenge": codeChallenge});