Skip to content

AuthSession - Automatically closes browser tab the moment you leave the tab. #5975

@Cartas

Description

@Cartas

🐛 Bug Report

Environment

  Expo CLI 3.2.3 environment info:
    System:
      OS: macOS 10.14.6
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 8.14.0 - ~/.nvm/versions/node/v8.14.0/bin/node
      Yarn: 1.19.0 - /usr/local/bin/yarn
      npm: 6.4.1 - ~/.nvm/versions/node/v8.14.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Xcode: 10.3/10G8 - /usr/bin/xcodebuild
    npmPackages:
      @storybook/react: ^5.2.1 => 5.2.1
      @testing-library/react: ^9.2.0 => 9.2.0

This issue occurs on Android!

Steps to Reproduce

Quite simply, use AuthSession.startAsync. After the Expo page opens in a Chrome tab, navigate to another app (which would occur in an example where authentication requires some 2FA via another app).

Expected Behaviour

The opened tab remains open.

Actual Behaviour

The tab will instantly close of its own accord.

Reproducible Demo

Here is an incredibly simple demo: https://snack.expo.io/ryTX3UXFr

Try it on Android, go to the app switcher and you'll see that the browser tab will close. This seems related to #5422, which was seemingly solved with this change: #5442. This only solves the issue for WebBrowser, and not for AuthSession.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions