FormidableLabs / FormidableLabs/react-native-app-auth

Bug Report: WebAuthenticationSession Disappears After Login, Preventing Password Save,AutoFill

Open
#1,068 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

### Description:
When using WebAuthenticationSession for authentication on a device or simulator, the session abruptly disappears immediately after the user successfully logs in. This behavior prevents the user from being able to use the "Save Password" feature, which should allow the password to be stored for future logins.

**Steps to Reproduce:**
Launch the app and initiate a login flow using WebAuthenticationSession.

On the initial login, enter a valid email and password.

After successful authentication, the WebAuthenticationSession session abruptly closes without giving the user an option to save their password.

The user cannot use the "Save Password" feature because the session closes unexpectedly.

**Expected Behavior:**
The WebAuthenticationSession should remain active after a successful login, providing the user with the option to save their password for future logins.

**Actual Behavior:**
The WebAuthenticationSession closes abruptly right after login, making it impossible for the user to save their password.

**Environment:**
iOS Version: [Include version, e.g., iOS 16.x]

Xcode Version: [Include version, e.g., Xcode 14.x]

Simulator/Device Model: [Include model, e.g., iPhone 13]

Swift Version: [Include version, e.g., Swift 5.7]

App Version: [Include version]

**Additional Information:**
This issue occurs on both physical devices and simulators.

The issue appears specifically during the initial login. If the user tries to log in again, they are not prompted with the "Save Password" feature.

This issue is not related to the authentication backend but to the session management on the client side.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.