appsup-dart/openid_client

Flow.authorizationCodeWithPKCE conflict with another Flutter class

Closed this issue · 0 comments

Hi everyone, I'm trying to implement Oauth2 authentication with PKCE as described in this article in a Flutter web application.

I'm stuck on this code:

    var flow = authorizationCodeWithPKCE(
      client,
      scopes: scopes,
      codeVerifier: codeVerifier,
      state: state,
    );

The method isn't defined, I imported the package:openid_client/openid_client_browser.dart library.

If I add Flow., I get the following error:

error

Has the library been refactored and the methods changed?

Thanks in advance.