firebase / firebase/firebase-js-sdk

Blank __/auth/handler

Open
#7,518 1 comment 1 reaction 0 assignees View on GitHub
api: auth needs-attention question stack:React
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### Operating System

macOS Ventura 13.2.1

### Browser Version

Chrome Version 115.0.5790.114,

### Firebase SDK Version

9.23.0

### Firebase SDK Product:

Auth

### Describe your project's tooling

React app with Vite and Vite PWA Plugin

### Describe the problem

I have the same issue with https://github.com/firebase/firebase-js-sdk/issues/7273. Yet I also tried his approach and did not shed any light. We (the team) are publishing a PWA to iOS via https://www.pwabuilder.com/, everything is going fine with the firebase auth SSO (google and apple) across different browsers such as Chrome and Safari, the firebase auth also works on the installed versions of the PWA, and as well as the published PWA on Google Play Store. However, the user redirects on a blank screen on the __/auth/handler when accessed on a native iOS WebView. We also confirmed that on the native iOS version, it opens an in-app browser. signInwithPopup() flow is used. I can send the url via email, contact me at dexcabigting1234@gmail.com

### Steps and code to reproduce issue

1. Enter pwabuilder.com
2. Enter URL
3. Click package for stores
4. Select iOS then generate package
5. Add permitted URLS in the "All Settings" dropdown [accounts.google.com, appleid.apple.com, sandbox.paypal.com]
6. Download package
7. Open the zip file and open a terminal in the src folder
8. Type pod install on the terminal (make sure you are in the src folder and have cocoapods installed)
9. Open .xcworkspace file on Xcode, run on iOS. 14+
10. Sign in with either google or apple
11. Then the __/auth/handler should be blank

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.