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 · 1 comment
Open
6 tasks done
Labels

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

@Widcket Widcket added the ios label Jan 13, 2025
@Widcket
Copy link
Contributor

Widcket commented Jan 15, 2025

Hi @carmaa, are you still experiencing this issue?

@Widcket Widcket added more info needed This issue is waiting for more information in order to progress and removed more info needed This issue is waiting for more information in order to progress labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants