Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stopped throwing WebAuthenticationException at user cancellation of login flow #450

Open
6 tasks done
carmaa opened this issue May 8, 2024 · 0 comments
Open
6 tasks done

Comments

@carmaa
Copy link

carmaa commented May 8, 2024

Checklist

Description

Seems like the module has stopped throwing WebAuthenticationException on user cancellation of the login flow? This does not work any more:

try {
      credentials = await _auth0
          .webAuthentication(scheme: dotenv.env["AUTH0_SCHEME"]!)
          .login(
              parameters: {'screen_hint': 'signup'},
              audience: dotenv.env["AUTH0_AUDIENCE"]!,
              useEphemeralSession: true);
    } on WebAuthenticationException catch (e) {
      if (e.code == userCancelled) {
        logger.d('User aborted sign up');
        return;
      }
    }

If I cancel the flow, no exception is thrown.

Reproduction

  1. Run the test app and try to catch WebAuthenticationException when login flow is cancelled
  2. ...

Additional context

No response

auth0_flutter version

1.7.1

Flutter version

3.19.6

Platform

iOS

Platform version(s)

16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant