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

Login flow can get stuck with transactionActiveAlready #1027

Open
6 tasks done
redblacktree opened this issue Dec 29, 2024 · 0 comments
Open
6 tasks done

Login flow can get stuck with transactionActiveAlready #1027

redblacktree opened this issue Dec 29, 2024 · 0 comments
Labels
bug This points to a verified bug in the code

Comments

@redblacktree
Copy link

Checklist

Description

On iOS, using ASWebAuthenticationSession, the login flow sometimes gets "stuck." Attempting to start a new login session results in [Error: Failed to start this transaction, as there is an active transaction at the moment.]

This happens when an error occurs during login, or the browser is closed before completing the login flow.

There is a workaround for the Swift library detailed here: https://github.com/auth0/Auth0.swift/blob/master/FAQ.md#5-how-to-resolve-the-failed-to-start-this-transaction-as-there-is-an-active-transaction-at-the-moment-error

How can I do the equivalent of WebAuthentication.cancel() from my React Native App?

Reproduction

  1. Start a login flow:

const credentials = await auth0.webAuth.authorize({...})

  1. Attempt auth against an IdP that does not have the correct redirect URLs configured (this was my scenario, but there may be other ways to repro)

  2. After the failure, try starting another login flow. The error [Error: Failed to start this transaction, as there is an active transaction at the moment.] will be raised.

Additional context

No response

react-native-auth0 version

4.0.0

React Native version

0.76.5

Expo version

52.0.23

Platform

iOS

Platform version(s)

18.2

@redblacktree redblacktree added the bug This points to a verified bug in the code label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

1 participant